Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk don't try to build PIE binaries when LDSTATIC
details: https://anonhg.NetBSD.org/src/rev/1b1c0e692c2c
branches: trunk
changeset: 754135:1b1c0e692c2c
user: christos <christos%NetBSD.org@localhost>
date: Wed Apr 21 15:07:20 2010 +0000
description:
don't try to build PIE binaries when LDSTATIC
diffstat:
share/mk/bsd.sys.mk | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r 734aa1a211c8 -r 1b1c0e692c2c share/mk/bsd.sys.mk
--- a/share/mk/bsd.sys.mk Wed Apr 21 14:58:10 2010 +0000
+++ b/share/mk/bsd.sys.mk Wed Apr 21 15:07:20 2010 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index