Module Name: src
Committed By: christos
Date: Sat Feb 27 20:36:18 UTC 2016
Modified Files:
src/share/mk: bsd.lib.mk
Log Message:
Don't build archive libs with -fPIC breaks static binaries and profilig.
To generate a diff of this commit:
cvs rdiff -u -r1.364 -r1.365 src/share/mk/bsd.lib.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.lib.mk
diff -u src/share/mk/bsd.lib.mk:1.364 src/share/mk/bsd.lib.mk:1.365
--- src/share/mk/bsd.lib.mk:1.364 Sat Feb 20 22:34:27 2016
+++ src/share/mk/bsd.lib.mk Sat Feb 27 15:36:17 2016
@@ -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 @@ realinstall: checkver libinstall
# 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" # {