diff options
author | grant <grant> | 2003-04-15 05:29:45 +0000 |
---|---|---|
committer | grant <grant> | 2003-04-15 05:29:45 +0000 |
commit | 45b953713a6b67cd1849f53f66547c24be3f1acf (patch) | |
tree | 997bc471ba82fb645edc834621b9bbb6e8c2737d /mk/defs.Linux.mk | |
parent | 5fea26b26bde94cf19fbefb7c1daf900f238d7b8 (diff) | |
download | pkgsrc-45b953713a6b67cd1849f53f66547c24be3f1acf.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.Linux.mk')
-rw-r--r-- | mk/defs.Linux.mk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/defs.Linux.mk b/mk/defs.Linux.mk index 6e3bb124749..d5e223a5055 100644 --- a/mk/defs.Linux.mk +++ b/mk/defs.Linux.mk @@ -1,4 +1,4 @@ -# $NetBSD: defs.Linux.mk,v 1.49 2003/03/20 00:34:17 hubertf Exp $ +# $NetBSD: defs.Linux.mk,v 1.50 2003/04/15 05:29:47 grant Exp $ # # Variable definitions for the Linux operating system. @@ -137,6 +137,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 |