pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/compiler Move the _COMPILER_LD_FLAG setting to some...
details: https://anonhg.NetBSD.org/pkgsrc/rev/bac7a2177d4d
branches: trunk
changeset: 467566:bac7a2177d4d
user: jlam <jlam%pkgsrc.org@localhost>
date: Tue Feb 03 04:09:27 2004 +0000
description:
Move the _COMPILER_LD_FLAG setting to somehere global as it applies to all
GCCs.
diffstat:
mk/compiler/gcc.mk | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 9bcd748bea2c -r bac7a2177d4d mk/compiler/gcc.mk
--- a/mk/compiler/gcc.mk Tue Feb 03 03:47:45 2004 +0000
+++ b/mk/compiler/gcc.mk Tue Feb 03 04:09:27 2004 +0000
@@ -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 @@
# 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 @@
. 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
Home |
Main Index |
Thread Index |
Old Index