summaryrefslogtreecommitdiff
path: root/mk/platform/Darwin.mk
diff options
context:
space:
mode:
authorjperkin <jperkin>2016-10-27 10:31:05 +0000
committerjperkin <jperkin>2016-10-27 10:31:05 +0000
commit0e47f1ddf56c79a62d1e6f524c1ffbd2a9039da4 (patch)
treee50cd183698928a16884887c83a46b3584f8bf63 /mk/platform/Darwin.mk
parent34650b37d26f6800081c22f66aea5235a96e284d (diff)
downloadpkgsrc-0e47f1ddf56c79a62d1e6f524c1ffbd2a9039da4.tar.gz
Add support for enabling cwrappers automatically. USE_CWRAPPERS now defaults
to "auto", which will enable cwrappers if the _OPSYS_SUPPORTS_CWRAPPERS platform variable is set to "yes". Switch over to cwrappers by default for Darwin, Linux, and SunOS (except when using the sunpro compiler).
Diffstat (limited to 'mk/platform/Darwin.mk')
-rw-r--r--mk/platform/Darwin.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/platform/Darwin.mk b/mk/platform/Darwin.mk
index 5087a366ce0..c8b54da504a 100644
--- a/mk/platform/Darwin.mk
+++ b/mk/platform/Darwin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: Darwin.mk,v 1.83 2016/09/06 09:50:20 jperkin Exp $
+# $NetBSD: Darwin.mk,v 1.84 2016/10/27 10:31:06 jperkin Exp $
#
# Variable definitions for the Darwin operating system.
@@ -153,6 +153,8 @@ BUILDLINK_TRANSFORM+= rm:-Wl,--export-dynamic
BUILDLINK_TRANSFORM+= rm:-Wl,--gc-sections
BUILDLINK_TRANSFORM+= rm:-Wl,--no-undefined
+_OPSYS_SUPPORTS_CWRAPPERS= yes
+
_OPSYS_CAN_CHECK_SHLIBS= yes # check shared libraries using otool(1)
# OSX strip(1) tries to remove relocatable symbols and fails on certain