summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2016-02-16 11:54:12 +0000
committerjperkin <jperkin@pkgsrc.org>2016-02-16 11:54:12 +0000
commitf6b58603358516bf5153a76e752db733946f3d97 (patch)
tree5e2fe3ebd812d489ed75e9a37ac036e15810e04d /sysutils
parentaf7aa0bb18f8c366cb5a02507c1ac0725f03d67e (diff)
downloadpkgsrc-f6b58603358516bf5153a76e752db733946f3d97.tar.gz
Fix build on Darwin/gcc.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/coreutils/Makefile.common8
1 files changed, 5 insertions, 3 deletions
diff --git a/sysutils/coreutils/Makefile.common b/sysutils/coreutils/Makefile.common
index 3672ad04980..ea0723e739c 100644
--- a/sysutils/coreutils/Makefile.common
+++ b/sysutils/coreutils/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.13 2016/02/16 08:51:57 jperkin Exp $
+# $NetBSD: Makefile.common,v 1.14 2016/02/16 11:54:12 jperkin Exp $
# used by sysutils/coreutils/Makefile
# used by misc/gnuls/Makefile
@@ -43,8 +43,10 @@ CONFIGURE_ENV+= ac_list_mounted_fs=found
CONFIGURE_ENV+= gl_cv_search_pthread_join=-lpthread
.endif
-.if ${OPSYS} == "Linux"
-CONFIGURE_ENV+= FORCE_UNSAFE_CONFIGURE=1
+# Various tests rely on GCC's -O2 behaviour (e.g. -D__NO_INLINE__) and
+# without it we run into undefined symbol issues.
+.if ${OPSYS} == "Darwin" && ${PKGSRC_COMPILER} == "gcc"
+CFLAGS+= -O2
.endif
# Explicitly disable inotify support whilst it is Linux-specific.