Module Name:    src
Committed By:   joerg
Date:           Wed Jan 15 14:00:09 UTC 2014

Modified Files:
        src/share/mk: bsd.sys.mk

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


To generate a diff of this commit:
cvs rdiff -u -r1.234 -r1.235 src/share/mk/bsd.sys.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/mk/bsd.sys.mk
diff -u src/share/mk/bsd.sys.mk:1.234 src/share/mk/bsd.sys.mk:1.235
--- src/share/mk/bsd.sys.mk:1.234	Fri Jan 10 16:20:14 2014
+++ src/share/mk/bsd.sys.mk	Wed Jan 15 14:00:09 2014
@@ -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 @@ AFLAGS+=	${CPUFLAGS}
 .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
 

Reply via email to