Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/mk -shared-libgcc is a GCC option, so only use it for ...



details:   https://anonhg.NetBSD.org/src/rev/9dfa4efba303
branches:  trunk
changeset: 325993:9dfa4efba303
user:      joerg <joerg%NetBSD.org@localhost>
date:      Wed Jan 15 14:00:09 2014 +0000

description:
-shared-libgcc is a GCC option, so only use it for gcc.

diffstat:

 share/mk/bsd.sys.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 2991fe3c9599 -r 9dfa4efba303 share/mk/bsd.sys.mk
--- a/share/mk/bsd.sys.mk       Wed Jan 15 13:59:38 2014 +0000
+++ b/share/mk/bsd.sys.mk       Wed Jan 15 14:00:09 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.sys.mk,v 1.234 2014/01/10 16:20:14 christos Exp $
+#      $NetBSD: bsd.sys.mk,v 1.235 2014/01/15 14:00:09 joerg Exp $
 #
 # Build definitions used for NetBSD source tree builds.
 
@@ -148,7 +148,7 @@
 .if !defined(LDSTATIC) || ${LDSTATIC} != "-static"
 # Position Independent Executable flags
 PIE_CFLAGS?=        -fPIC
-PIE_LDFLAGS?=       -Wl,-pie -shared-libgcc
+PIE_LDFLAGS?=       -Wl,-pie ${${ACTIVE_CC} == "gcc":? -shared-libgcc :}
 PIE_AFLAGS?=       -fPIC
 .endif
 



Home | Main Index | Thread Index | Old Index