diff options
author | grant <grant@pkgsrc.org> | 2003-04-15 05:29:45 +0000 |
---|---|---|
committer | grant <grant@pkgsrc.org> | 2003-04-15 05:29:45 +0000 |
commit | 3f620389b6e78309b6860a3d6dc38eaae5c5b3a9 (patch) | |
tree | 997bc471ba82fb645edc834621b9bbb6e8c2737d /mk/defs.FreeBSD.mk | |
parent | 7037124067ec544cb64d5ce268f3963a7e598986 (diff) | |
download | pkgsrc-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.FreeBSD.mk')
-rw-r--r-- | mk/defs.FreeBSD.mk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/defs.FreeBSD.mk b/mk/defs.FreeBSD.mk index 315b22ec4c5..e2a4c13b293 100644 --- a/mk/defs.FreeBSD.mk +++ b/mk/defs.FreeBSD.mk @@ -1,4 +1,4 @@ -# $NetBSD: defs.FreeBSD.mk,v 1.20 2003/03/04 14:50:11 seb Exp $ +# $NetBSD: defs.FreeBSD.mk,v 1.21 2003/04/15 05:29:46 grant Exp $ # # Variable definitions for the FreeBSD operating system. @@ -135,6 +135,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 |