summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-02-03 04:09:27 +0000
committerjlam <jlam@pkgsrc.org>2004-02-03 04:09:27 +0000
commitf40dcf83b8f3548abcf8bea786455addde1f9f1a (patch)
tree681f0888ba013aeb0a1051bd34b7473976bb50f2
parent1228520e97095e2603491870d007b0d74cd9a024 (diff)
downloadpkgsrc-f40dcf83b8f3548abcf8bea786455addde1f9f1a.tar.gz
Move the _COMPILER_LD_FLAG setting to somehere global as it applies to all
GCCs.
-rw-r--r--mk/compiler/gcc.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/mk/compiler/gcc.mk b/mk/compiler/gcc.mk
index 132ed885e2f..cfa79f2491c 100644
--- a/mk/compiler/gcc.mk
+++ b/mk/compiler/gcc.mk
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.14 2004/02/03 03:47:45 jlam Exp $
+# $NetBSD: gcc.mk,v 1.15 2004/02/03 04:09:27 jlam Exp $
.if !defined(COMPILER_GCC_MK)
COMPILER_GCC_MK= defined
@@ -174,7 +174,6 @@ _USE_PKGSRC_GCC!= \
# Ensure that the correct rpath is passed to the linker if we need to
# link against gcc shared libs.
#
-_COMPILER_LD_FLAG= -Wl,
. if !empty(_CC:M${LOCALBASE}/*)
_GCC_SUBPREFIX= ${_CC:T:S/\/bin$//:S/${LOCALBASE}\///:S/${LOCALBASE}//}/
. else
@@ -266,6 +265,9 @@ PATH:= ${_CC:H}:${PATH}
. endif
.endif
+# GCC passes flags to the linker using "-Wl,".
+_COMPILER_LD_FLAG= -Wl,
+
# Pass the required flags to imake to tell it we're using gcc on Solaris.
.if ${OPSYS} == "SunOS"
IMAKEOPTS+= -DHasGcc2=YES -DHasGcc2ForCplusplus=YES