Module Name: src
Committed By: christos
Date: Wed Apr 21 15:07:20 UTC 2010
Modified Files:
src/share/mk: bsd.sys.mk
Log Message:
don't try to build PIE binaries when LDSTATIC
To generate a diff of this commit:
cvs rdiff -u -r1.190 -r1.191 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.190 src/share/mk/bsd.sys.mk:1.191
--- src/share/mk/bsd.sys.mk:1.190 Tue Mar 2 15:49:18 2010
+++ src/share/mk/bsd.sys.mk Wed Apr 21 11:07:20 2010
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.sys.mk,v 1.190 2010/03/02 20:49:18 darran Exp $
+# $NetBSD: bsd.sys.mk,v 1.191 2010/04/21 15:07:20 christos Exp $
#
# Build definitions used for NetBSD source tree builds.
@@ -106,10 +106,12 @@
CFLAGS+= ${CPUFLAGS}
AFLAGS+= ${CPUFLAGS}
+if !defined(LDSTATIC) || ${LDSTATIC} != "-static"
# Position Independent Executable flags
PIE_CFLAGS?= -fPIC -DPIC
PIE_LDFLAGS?= -Wl,-pie -shared-libgcc
PIE_AFLAGS?= -fPIC -DPIC
+endif
# Helpers for cross-compiling
HOST_CC?= cc