Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk Enable opt-out from shlib mapfile creation. Not al...
details: https://anonhg.NetBSD.org/src/rev/986ef5ac499c
branches: trunk
changeset: 788775:986ef5ac499c
user: pooka <pooka%NetBSD.org@localhost>
date: Fri Jul 19 11:43:18 2013 +0000
description:
Enable opt-out from shlib mapfile creation. Not all linkers (namely
the solaris one) support such fancy features.
no default functional change
diffstat:
share/mk/bsd.lib.mk | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r 4611862eb7db -r 986ef5ac499c share/mk/bsd.lib.mk
--- a/share/mk/bsd.lib.mk Fri Jul 19 11:19:23 2013 +0000
+++ b/share/mk/bsd.lib.mk Fri Jul 19 11:43:18 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.lib.mk,v 1.336 2013/07/16 02:58:19 matt Exp $
+# $NetBSD: bsd.lib.mk,v 1.337 2013/07/19 11:43:18 pooka Exp $
# @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94
.include <bsd.init.mk>
@@ -207,7 +207,9 @@
SHLIB_SOVERSION= ${SHLIB_MAJOR}
SHLIB_SHFLAGS= -Wl,-soname,${_LIB}.so.${SHLIB_SOVERSION}
SHLIB_SHFLAGS+= -Wl,--warn-shared-textrel
+.if !defined(SHLIB_MKMAP) || ${SHLIB_MKMAP} != "no"
SHLIB_SHFLAGS+= -Wl,-Map=${_LIB}.so.${SHLIB_SOVERSION}.map
+.endif
CLEANFILES+= ${_LIB}.so.${SHLIB_SOVERSION}.map
SHLIB_LDSTARTFILE?= ${_GCC_CRTI} ${_GCC_CRTBEGINS}
SHLIB_LDENDFILE?= ${_GCC_CRTENDS} ${_GCC_CRTN}
Home |
Main Index |
Thread Index |
Old Index