summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjschauma <jschauma>2003-04-15 14:07:54 +0000
committerjschauma <jschauma>2003-04-15 14:07:54 +0000
commita8ee360bda11d0a5a11d25aee5a9d77f9750e876 (patch)
treefa74fe7643d355f8638ea8edb369d4391099e5a3
parent2c96f69acda603153f1ff564019cc0986be5b6ff (diff)
downloadpkgsrc-a8ee360bda11d0a5a11d25aee5a9d77f9750e876.tar.gz
IRIX' ld uses "-all" and "-notall" for WHOLE_ARCHIVE_FLAGs.
-rw-r--r--mk/defs.IRIX.mk11
1 files changed, 7 insertions, 4 deletions
diff --git a/mk/defs.IRIX.mk b/mk/defs.IRIX.mk
index 7b543c14684..1412bf360e1 100644
--- a/mk/defs.IRIX.mk
+++ b/mk/defs.IRIX.mk
@@ -1,4 +1,4 @@
-# $NetBSD: defs.IRIX.mk,v 1.24 2003/04/15 05:29:47 grant Exp $
+# $NetBSD: defs.IRIX.mk,v 1.25 2003/04/15 14:07:54 jschauma Exp $
#
# Variable definitions for the IRIX operating system.
@@ -123,9 +123,12 @@ _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.
-# XXX values for IRIX absent!
-#_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive
-#_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive
+# XXX:
+# These flags are for the IRIX linker. If GNU ld is used, these would need
+# to be set to --{no-}whole-archive. So, ugh, let's say we only do
+# IRIX tools for the time being.
+_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,-all
+_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,-notall
.if !defined(DEBUG_FLAGS)
_STRIPFLAG_CC?= -s # cc(1) option to strip