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/363cb81e4e9d
branches: trunk
changeset: 344715:363cb81e4e9d
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 ed92e8bb7020 -r 363cb81e4e9d 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