Source-Changes-HG archive

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

[src/trunk]: src/share/mk Add --warn-shared-textrel for the linker.



details:   https://anonhg.NetBSD.org/src/rev/c8ce8faf9d68
branches:  trunk
changeset: 814857:c8ce8faf9d68
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Apr 12 18:50:45 2016 +0000

description:
Add --warn-shared-textrel for the linker.

diffstat:

 share/mk/bsd.sys.mk |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 328ce271c469 -r c8ce8faf9d68 share/mk/bsd.sys.mk
--- a/share/mk/bsd.sys.mk       Tue Apr 12 18:07:08 2016 +0000
+++ b/share/mk/bsd.sys.mk       Tue Apr 12 18:50:45 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.sys.mk,v 1.257 2016/03/30 13:05:09 martin Exp $
+#      $NetBSD: bsd.sys.mk,v 1.258 2016/04/12 18:50:45 christos Exp $
 #
 # Build definitions used for NetBSD source tree builds.
 
@@ -67,6 +67,9 @@
 . endif
 .endif
 .endif
+
+LDFLAGS+=      -Wl,--warn-shared-textrel
+
 .if ${WARNS} > 1
 CFLAGS+=       -Wreturn-type -Wswitch -Wshadow
 .endif



Home | Main Index | Thread Index | Old Index