equal
deleted
inserted
replaced
1 From 29f082e4d47699c09f909532cc0eae725e31851b Mon Sep 17 00:00:00 2001 |
|
2 From: Alan Coopersmith <[email protected]> |
|
3 Date: Wed, 16 Jul 2008 13:16:19 -0700 |
|
4 Subject: [PATCH] Convert mklib -exports list into a linker mapfile on Solaris |
|
5 --- |
|
6 bin/mklib | 11 +++++++++++ |
|
7 1 files changed, 11 insertions(+), 0 deletions(-) |
|
8 |
|
9 diff --git a/bin/mklib b/bin/mklib |
|
10 index aaae3a8..3eddb74 100755 |
|
11 --- a/bin/mklib |
|
12 +++ b/bin/mklib |
|
13 @@ -389,6 +389,17 @@ # rm -f exptmp |
|
14 # libraries in the link path when building shared objects |
|
15 DEPS="${DEPS} -lc" |
|
16 |
|
17 + if [ $EXPORTS ] ; then |
|
18 + # Make the 'mapfile.scope' linker mapfile |
|
19 + echo "{" > mapfile.scope |
|
20 + echo "global:" >> mapfile.scope |
|
21 + sed 's/$/;/' ${EXPORTS} >> mapfile.scope |
|
22 + echo "local:" >> mapfile.scope |
|
23 + echo " *;" >> mapfile.scope |
|
24 + echo "};" >> mapfile.scope |
|
25 + OPTS="${OPTS} -M mapfile.scope" |
|
26 + fi |
|
27 + |
|
28 # for debug: |
|
29 #echo "mklib: linker is" ${LINK} ${OPTS} |
|
30 if [ $NOPREFIX = 1 ] ; then |
|
31 -- |
|
32 1.4.1 |
|
33 |
|