diff options
author | grant <grant> | 2003-04-15 05:29:45 +0000 |
---|---|---|
committer | grant <grant> | 2003-04-15 05:29:45 +0000 |
commit | 99af2559c0b757d2cf7945615fca80afa686cd20 (patch) | |
tree | 997bc471ba82fb645edc834621b9bbb6e8c2737d /mk/defs.NetBSD.mk | |
parent | fb39a3ee11834be5abd12f0b46e3da07b743d442 (diff) | |
download | pkgsrc-99af2559c0b757d2cf7945615fca80afa686cd20.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.mk | 7 |
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 |