summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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