summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authoradam <adam>2017-07-04 12:46:52 +0000
committeradam <adam>2017-07-04 12:46:52 +0000
commite8fb3834425f2392a4b62aae32b6b9edea4caba1 (patch)
tree7e0bbb01d6af3544943acb498a6e5af006095072 /lang
parent9b1cc2ef409724d0e99a1866368da8583825f55f (diff)
downloadpkgsrc-e8fb3834425f2392a4b62aae32b6b9edea4caba1.tar.gz
Added CONFIGURE_ARGS.Darwin
Diffstat (limited to 'lang')
-rw-r--r--lang/gcc7/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/lang/gcc7/Makefile b/lang/gcc7/Makefile
index d1e352db9ed..6e2a5404827 100644
--- a/lang/gcc7/Makefile
+++ b/lang/gcc7/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2017/06/22 21:44:49 maya Exp $
+# $NetBSD: Makefile,v 1.8 2017/07/04 12:46:52 adam Exp $
GCC_PKGNAME= gcc7
.include "version.mk"
@@ -92,6 +92,11 @@ CONFIGURE_ARGS+= --enable-long-long
CONFIGURE_ARGS+= --with-local-prefix=${GCC_PREFIX:Q}
CONFIGURE_ARGS+= --enable-threads=posix
CONFIGURE_ARGS+= --with-boot-ldflags=${BOOT_LDFLAGS:Q}
+# multilib on Darwin requires fat-binaries
+CONFIGURE_ARGS.Darwin+= --disable-multilib
+.if !empty(OSX_SDK_PATH)
+CONFIGURE_ARGS.Darwin+= --with-sysroot=${OSX_SDK_PATH}
+.endif
CONFIGURE_ARGS.NetBSD+= --with-gnu-ld --with-ld=/usr/bin/ld
CONFIGURE_ARGS.NetBSD+= --with-gnu-as --with-as=/usr/bin/as
MAKE_ENV.NetBSD+= ac_cv_func_clock_gettime=yes