Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk allow use with linkers that don't support --warn-sh...
details: https://anonhg.NetBSD.org/src/rev/c94b4fc76812
branches: trunk
changeset: 328910:c94b4fc76812
user: pooka <pooka%NetBSD.org@localhost>
date: Thu Apr 24 00:14:59 2014 +0000
description:
allow use with linkers that don't support --warn-shared-textrel
(Solaris, OpenBSD)
diffstat:
share/mk/bsd.lib.mk | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r fe53df414d70 -r c94b4fc76812 share/mk/bsd.lib.mk
--- a/share/mk/bsd.lib.mk Wed Apr 23 23:25:45 2014 +0000
+++ b/share/mk/bsd.lib.mk Thu Apr 24 00:14:59 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.lib.mk,v 1.353 2014/04/11 16:51:43 matt Exp $
+# $NetBSD: bsd.lib.mk,v 1.354 2014/04/24 00:14:59 pooka Exp $
# @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94
.include <bsd.init.mk>
@@ -169,7 +169,9 @@
# Platform-independent linker flags for ELF shared libraries
SHLIB_SOVERSION= ${SHLIB_MAJOR}
SHLIB_SHFLAGS= -Wl,-soname,${_LIB}.so.${SHLIB_SOVERSION}
+.if !defined(SHLIB_WARNTEXTREL) || ${SHLIB_WARNTEXTREL} != "no"
SHLIB_SHFLAGS+= -Wl,--warn-shared-textrel
+.endif
.if !defined(SHLIB_MKMAP) || ${SHLIB_MKMAP} != "no"
SHLIB_SHFLAGS+= -Wl,-Map=${_LIB}.so.${SHLIB_SOVERSION}.map
.endif
Home |
Main Index |
Thread Index |
Old Index