pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/multimedia/libvpx add check for clang supporting -fno-...
details: https://anonhg.NetBSD.org/pkgsrc/rev/0847aff150f6
branches: trunk
changeset: 650829:0847aff150f6
user: dbj <dbj%pkgsrc.org@localhost>
date: Mon Apr 27 07:31:08 2015 +0000
description:
add check for clang supporting -fno-integrated-as instead of -no-integrated-as
diffstat:
multimedia/libvpx/Makefile | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 213ffa8ac359 -r 0847aff150f6 multimedia/libvpx/Makefile
--- a/multimedia/libvpx/Makefile Mon Apr 27 07:27:55 2015 +0000
+++ b/multimedia/libvpx/Makefile Mon Apr 27 07:31:08 2015 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index