Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/mk Revert and leave broken.



details:   https://anonhg.NetBSD.org/src/rev/499b37380ab5
branches:  trunk
changeset: 343836:499b37380ab5
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Feb 27 23:51:34 2016 +0000

description:
Revert and leave broken.

diffstat:

 share/mk/bsd.lib.mk |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (26 lines):

diff -r 4a54d112e146 -r 499b37380ab5 share/mk/bsd.lib.mk
--- a/share/mk/bsd.lib.mk       Sat Feb 27 23:50:13 2016 +0000
+++ b/share/mk/bsd.lib.mk       Sat Feb 27 23:51:34 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.lib.mk,v 1.365 2016/02/27 20:36:17 christos Exp $
+#      $NetBSD: bsd.lib.mk,v 1.366 2016/02/27 23:51:34 christos Exp $
 #      @(#)bsd.lib.mk  8.3 (Berkeley) 4/22/94
 
 .include <bsd.init.mk>
@@ -42,11 +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.
-# Disabled since it breaks profiling.
-#.if defined(MKPIE) && (${MKPIE} != "no") && !defined(NOPIE)
-#CFLAGS+=        ${PIE_CFLAGS}
-#AFLAGS+=        ${PIE_AFLAGS}
-#.endif
+# XXX: This breaks profiling (__mcount relocation is wrong)
+.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