summaryrefslogtreecommitdiff
path: root/multimedia/libvpx
diff options
context:
space:
mode:
authordbj <dbj@pkgsrc.org>2015-04-27 07:31:08 +0000
committerdbj <dbj@pkgsrc.org>2015-04-27 07:31:08 +0000
commit61443a685987c54fa184b4546c7a555624db2df4 (patch)
tree0745ae0b41be8fbb38a262dc1ed9925d495b558c /multimedia/libvpx
parente767bcb71f46cf21941f61cf663eae618b21c0df (diff)
downloadpkgsrc-61443a685987c54fa184b4546c7a555624db2df4.tar.gz
add check for clang supporting -fno-integrated-as instead of -no-integrated-as
Diffstat (limited to 'multimedia/libvpx')
-rw-r--r--multimedia/libvpx/Makefile7
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