summaryrefslogtreecommitdiff
path: root/mk/defs.Darwin.mk
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2003-04-15 05:29:45 +0000
committergrant <grant@pkgsrc.org>2003-04-15 05:29:45 +0000
commit3f620389b6e78309b6860a3d6dc38eaae5c5b3a9 (patch)
tree997bc471ba82fb645edc834621b9bbb6e8c2737d /mk/defs.Darwin.mk
parent7037124067ec544cb64d5ce268f3963a7e598986 (diff)
downloadpkgsrc-3f620389b6e78309b6860a3d6dc38eaae5c5b3a9.tar.gz
add OPSYS_{,NO_}WHOLE_ARCHIVE_FLAG which defines the argument passed
to the linker to (not) extract all symbols from static archives and export these variables to packages as {,NO_}WHOLE_ARCHIVE_FLAG. these are not currently set for IRIX.
Diffstat (limited to 'mk/defs.Darwin.mk')
-rw-r--r--mk/defs.Darwin.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/defs.Darwin.mk b/mk/defs.Darwin.mk
index 2e0ecf6f74b..741401e42dc 100644
--- a/mk/defs.Darwin.mk
+++ b/mk/defs.Darwin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: defs.Darwin.mk,v 1.49 2003/04/01 16:48:20 thorpej Exp $
+# $NetBSD: defs.Darwin.mk,v 1.50 2003/04/15 05:29:46 grant Exp $
#
# Variable definitions for the Darwin operating system.
@@ -120,6 +120,11 @@ _PREFORMATTED_MAN_DIR= cat # directory where catman pages are
_USE_GNU_GETTEXT= no # Don't use GNU gettext
_USE_RPATH= no # don't add rpath to LDFLAGS
+# flags passed to the linker to extract all symbols from static archives.
+# this is GNU ld.
+_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive
+_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive
+
.if !defined(DEBUG_FLAGS)
_STRIPFLAG_CC?= -Wl,-x # cc(1) option to strip
_STRIPFLAG_INSTALL?= -s # install(1) option to strip