diff options
author | dbj <dbj> | 2015-04-27 07:31:08 +0000 |
---|---|---|
committer | dbj <dbj> | 2015-04-27 07:31:08 +0000 |
commit | 843a39de15275a67318d47c0d3ded5b81ae4059d (patch) | |
tree | 0745ae0b41be8fbb38a262dc1ed9925d495b558c /multimedia | |
parent | ece0cf96a74501f44cdae2bd75d4482aaccc46ad (diff) | |
download | pkgsrc-843a39de15275a67318d47c0d3ded5b81ae4059d.tar.gz |
add check for clang supporting -fno-integrated-as instead of -no-integrated-as
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/libvpx/Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/multimedia/libvpx/Makefile b/multimedia/libvpx/Makefile index d3d85ae604d..ea74a772212 100644 --- a/multimedia/libvpx/Makefile +++ b/multimedia/libvpx/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.53 2015/04/09 17:44:01 tron Exp $ +# $NetBSD: Makefile,v 1.54 2015/04/27 07:31:08 dbj Exp $ DISTNAME= libvpx_1.3.0.orig PKGNAME= ${DISTNAME:S/_/-/:S/.orig//} @@ -98,7 +98,10 @@ CXXFLAGS+= -std=c++11 SUBST_CLASSES+= clang SUBST_STAGE.clang= pre-configure SUBST_FILES.clang= build/make/Makefile -SUBST_SED.clang= -e 's/-DINLINE_ASM/-DINLINE_ASM -fno-integrated-as/' +SUBST_MESSAGE.clang= Disabling clang integrated assembler +# Test for whether clang supports -fno-integrated-as instead of -no-integrated-as +CLANG_INTEGRATED_AS!= if ${CCPATH} --version -fno-integrated-as > /dev/null 2>&1; then ${ECHO} "-fno-integrated-as"; else ${ECHO} "-no-integrated-as"; fi +SUBST_SED.clang= -e 's/-DINLINE_ASM/-DINLINE_ASM ${CLANG_INTEGRATED_AS}/' . endif .endif |