Module Name:    src
Committed By:   christos
Date:           Tue Apr 12 18:50:45 UTC 2016

Modified Files:
        src/share/mk: bsd.sys.mk

Log Message:
Add --warn-shared-textrel for the linker.


To generate a diff of this commit:
cvs rdiff -u -r1.257 -r1.258 src/share/mk/bsd.sys.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.sys.mk
diff -u src/share/mk/bsd.sys.mk:1.257 src/share/mk/bsd.sys.mk:1.258
--- src/share/mk/bsd.sys.mk:1.257	Wed Mar 30 09:05:09 2016
+++ src/share/mk/bsd.sys.mk	Tue Apr 12 14:50:45 2016
@@ -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 @@ LDFLAGS+=	-Wl,--fatal-warnings
 . endif
 .endif
 .endif
+
+LDFLAGS+=	-Wl,--warn-shared-textrel
+
 .if ${WARNS} > 1
 CFLAGS+=	-Wreturn-type -Wswitch -Wshadow
 .endif

Reply via email to