summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorbsiegert <bsiegert@pkgsrc.org>2014-11-22 16:32:13 +0000
committerbsiegert <bsiegert@pkgsrc.org>2014-11-22 16:32:13 +0000
commitcf3fad4c80735a15d70d66289206be28125a2877 (patch)
treecb680ee457aa9ba38dc15590a13250494c0e056a /mk
parentb6967512cb5fca80080c68d33a86b2cde58e1de7 (diff)
downloadpkgsrc-cf3fad4c80735a15d70d66289206be28125a2877.tar.gz
Do not use gcc-specific compiler flags on Mac OS versions that come with
clang. Update version for bootstrap-mk-files. Patch provided by Todd Kover in PR pkg/48966.
Diffstat (limited to 'mk')
-rw-r--r--mk/platform/Darwin.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/platform/Darwin.mk b/mk/platform/Darwin.mk
index 78550c2c2f2..b149dcb563f 100644
--- a/mk/platform/Darwin.mk
+++ b/mk/platform/Darwin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: Darwin.mk,v 1.63 2014/08/17 08:32:32 tron Exp $
+# $NetBSD: Darwin.mk,v 1.64 2014/11/22 16:32:13 bsiegert Exp $
#
# Variable definitions for the Darwin operating system.
@@ -122,8 +122,13 @@ _OPSYS_PREFER.mit-krb5?= native
# flags passed to the linker to extract all symbols from static archives.
# this is GNU ld.
+.if empty(MACHINE_PLATFORM:MDarwin-[0-8].*-*)
+_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,-force-load
+_OPSYS_NO_WHOLE_ARCHIVE_FLAG=
+.else
_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive
_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive
+.endif
_OPSYS_CAN_CHECK_SHLIBS= no # can't use readelf in check/bsd.check-vars.mk