Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk When linking shared libraries, produce a map file.
details: https://anonhg.NetBSD.org/src/rev/9ca1f7da2a22
branches: trunk
changeset: 787938:9ca1f7da2a22
user: matt <matt%NetBSD.org@localhost>
date: Tue Jul 16 02:58:19 2013 +0000
description:
When linking shared libraries, produce a map file.
diffstat:
share/mk/bsd.lib.mk | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r 72f36e818763 -r 9ca1f7da2a22 share/mk/bsd.lib.mk
--- a/share/mk/bsd.lib.mk Tue Jul 16 02:54:32 2013 +0000
+++ b/share/mk/bsd.lib.mk Tue Jul 16 02:58:19 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.lib.mk,v 1.335 2013/04/22 22:16:14 riastradh Exp $
+# $NetBSD: bsd.lib.mk,v 1.336 2013/07/16 02:58:19 matt Exp $
# @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94
.include <bsd.init.mk>
@@ -207,6 +207,8 @@
SHLIB_SOVERSION= ${SHLIB_MAJOR}
SHLIB_SHFLAGS= -Wl,-soname,${_LIB}.so.${SHLIB_SOVERSION}
SHLIB_SHFLAGS+= -Wl,--warn-shared-textrel
+SHLIB_SHFLAGS+= -Wl,-Map=${_LIB}.so.${SHLIB_SOVERSION}.map
+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