Skip to content

Commit

Permalink
Improve Clang build fix and use it under Mac OS X as well. The problem
Browse files Browse the repository at this point in the history
is specific to the verion of Clang (3.5 and newer) and not the platform.

This package now builds under Mac OS X Yosemite with the latest version
of Xcode tools.
  • Loading branch information
tron committed Apr 9, 2015
1 parent 09ec659 commit 93cfb90
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions multimedia/libvpx/Makefile
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.51 2015/02/25 11:13:54 adam Exp $
# $NetBSD: Makefile,v 1.52 2015/04/09 17:09:01 tron Exp $

DISTNAME= libvpx_1.3.0.orig
PKGNAME= ${DISTNAME:S/_/-/:S/.orig//}
Expand Down Expand Up @@ -93,9 +93,12 @@ CONFIGURE_ARGS+= --target=x86-solaris-gcc
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mclang)
CXXFLAGS+= -std=c++11
. if ${OPSYS} == "NetBSD"
. if ${OPSYS} == "NetBSD" || ${OPSYS} == "Darwin"
# https://bugzilla.mozilla.org/show_bug.cgi?id=982693
CFLAGS+= -fno-integrated-as
SUBST_CLASSES+= clang
SUBST_STAGE.clang= post-patch
SUBST_FILES.clang= build/make/Makefile
SUBST_SED.clang= -e 's/-DINLINE_ASM/-DINLINE_ASM -fno-integrated-as/'
. endif
.endif

Expand Down

0 comments on commit 93cfb90

Please sign in to comment.