summaryrefslogtreecommitdiffstats
path: root/source/script
diff options
context:
space:
mode:
authorKarolin Seeger <kseeger@samba.org>2008-06-09 08:39:12 +0200
committerKarolin Seeger <kseeger@samba.org>2008-06-09 08:50:29 +0200
commitcb4c5f51e20e7112a06040839a7e3069f7daea06 (patch)
tree968c55676f4ca1f74ba429075885efb6f38323e0 /source/script
parent5141a7f4cc598ac200e01cf279d3a53ff5e9d49a (diff)
downloadsamba-cb4c5f51e20e7112a06040839a7e3069f7daea06.tar.gz
samba-cb4c5f51e20e7112a06040839a7e3069f7daea06.tar.xz
samba-cb4c5f51e20e7112a06040839a7e3069f7daea06.zip
Revert "build: add symbol versioning when we build with gnu ld"
This reverts commit cb5492978b6b157f529806afb2f5fc6202888129. For more information, please have a look at the discussion on samba-technical starting with [1]. [1] http://lists.samba.org/archive/samba-technical/2008-June/059511.html Karolin (cherry picked from commit 1e5aeb96f92fef8056ec9010e125f4d0d31dd90e)
Diffstat (limited to 'source/script')
-rw-r--r--source/script/mksyms.awk3
-rwxr-xr-xsource/script/mksyms.sh34
2 files changed, 8 insertions, 29 deletions
diff --git a/source/script/mksyms.awk b/source/script/mksyms.awk
index dfe51dba7f0..a30bea4d340 100644
--- a/source/script/mksyms.awk
+++ b/source/script/mksyms.awk
@@ -9,6 +9,9 @@
BEGIN {
inheader=0;
current_file="";
+ print "#"
+ print "# This file is automatically generated with \"make symbols\". DO NOT EDIT "
+ print "#"
print "{"
print "\tglobal:"
}
diff --git a/source/script/mksyms.sh b/source/script/mksyms.sh
index 673c77a3cfa..51d3fbd9992 100755
--- a/source/script/mksyms.sh
+++ b/source/script/mksyms.sh
@@ -15,50 +15,26 @@ LANG=C; export LANG
LC_ALL=C; export LC_ALL
LC_COLLATE=C; export LC_COLLATE
-if [ $# -lt 3 ]
+if [ $# -lt 2 ]
then
- echo "Usage: $0 awk versionfile output_file header_files"
+ echo "Usage: $0 awk output_file header_files"
exit 1
fi
awk="$1"
shift
-versionfile="$1"
-shift
-
symsfile="$1"
shift
symsfile_tmp="$symsfile.$$.tmp~"
-libname=`basename $symsfile | cut -d '.' -f1`
-verline=`grep $libname $versionfile`
-majver=`echo -n "$verline" | cut -d ':' -f2`
-minver=`echo -n "$verline" | cut -d ':' -f3`
-upname=`echo -n "$libname" | sed -e 's/^lib//' | tr '[a-z]' '[A-Z]'`
-symver="${upname}_${majver}.${minver}"
-
-symsext=`basename $symsfile | cut -d '.' -f2-`
-
-if test x"$symsext" = x"version.syms"; then
- echo "creating $symsfile for $symver"
-else
- echo "creating $symsfile"
- symver="# no symbol versioning"
-fi
-
proto_src="`echo $@ | tr ' ' '\n' | sort | uniq `"
-mkdir -p `dirname $symsfile`
+echo creating $symsfile
-cat > $symsfile_tmp <<_ACEOF
-#
-# This file is automatically generated with "$0". DO NOT EDIT
-#
-$symver
-_ACEOF
+mkdir -p `dirname $symsfile`
-${awk} -f `dirname $0`/mksyms.awk $proto_src >> $symsfile_tmp
+${awk} -f `dirname $0`/mksyms.awk $proto_src > $symsfile_tmp
if cmp -s $symsfile $symsfile_tmp 2>/dev/null
then