summaryrefslogtreecommitdiff
path: root/mk/defs.NetBSD.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.NetBSD.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.NetBSD.mk')
-rw-r--r--mk/defs.NetBSD.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/defs.NetBSD.mk b/mk/defs.NetBSD.mk
index 737570a8e34..0ef3687edb6 100644
--- a/mk/defs.NetBSD.mk
+++ b/mk/defs.NetBSD.mk
@@ -1,4 +1,4 @@
-# $NetBSD: defs.NetBSD.mk,v 1.47 2003/03/04 14:50:11 seb Exp $
+# $NetBSD: defs.NetBSD.mk,v 1.48 2003/04/15 05:29:47 grant Exp $
#
# Variable definitions for the NetBSD operating system.
@@ -127,6 +127,11 @@ _PREFORMATTED_MAN_DIR= cat # directory where catman pages are
_USE_GNU_GETTEXT= no # Don't use GNU gettext
_USE_RPATH= yes # 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?= -s # cc(1) option to strip
_STRIPFLAG_INSTALL?= -s # install(1) option to strip