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 build archive libs with -fPIC breaks static b...
details: https://anonhg.NetBSD.org/src/rev/505c9410cd6b
branches: trunk
changeset: 343824:505c9410cd6b
user: christos <christos%NetBSD.org@localhost>
date: Sat Feb 27 20:36:17 2016 +0000
description:
Don't build archive libs with -fPIC breaks static binaries and profilig.
diffstat:
share/mk/bsd.lib.mk | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (25 lines):
diff -r dfb4ff5951a1 -r 505c9410cd6b share/mk/bsd.lib.mk
--- a/share/mk/bsd.lib.mk Sat Feb 27 19:26:13 2016 +0000
+++ b/share/mk/bsd.lib.mk Sat Feb 27 20:36:17 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.lib.mk,v 1.364 2016/02/21 03:34:27 christos Exp $
+# $NetBSD: bsd.lib.mk,v 1.365 2016/02/27 20:36:17 christos Exp $
# @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94
.include <bsd.init.mk>
@@ -42,10 +42,11 @@
# XXX: This is needed for programs that link with .a libraries
# Perhaps a more correct solution is to always generate _pic.a
# files or always have a shared library.
-.if defined(MKPIE) && (${MKPIE} != "no") && !defined(NOPIE)
-CFLAGS+= ${PIE_CFLAGS}
-AFLAGS+= ${PIE_AFLAGS}
-.endif
+# Disabled since it breaks profiling.
+#.if defined(MKPIE) && (${MKPIE} != "no") && !defined(NOPIE)
+#CFLAGS+= ${PIE_CFLAGS}
+#AFLAGS+= ${PIE_AFLAGS}
+#.endif
##### Libraries that this may depend upon.
.if defined(LIBDPLIBS) && ${MKPIC} != "no" # {
Home |
Main Index |
Thread Index |
Old Index