summaryrefslogtreecommitdiff
path: root/release
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-06-24 21:14:10 +0000
committerMiles Bader <miles@gnu.org>1997-06-24 21:14:10 +0000
commit3300bd484965e9a0ad133721f7b0c7efff1ee3d4 (patch)
tree1115414c7171c3c06ca144401f191b4b5851b08d /release
parent91788dc7e0c749579441a204447fc2ad1705dbc9 (diff)
Renamed to mksmallso.sh
Diffstat (limited to 'release')
-rw-r--r--release/mksmallso25
1 files changed, 0 insertions, 25 deletions
diff --git a/release/mksmallso b/release/mksmallso
deleted file mode 100644
index a39a24db..00000000
--- a/release/mksmallso
+++ /dev/null
@@ -1,25 +0,0 @@
-# Usage:
-# $1 : Destination merged, stripped, small shared library
-# $2 : lib*_pic.a files from which to produce the final small library
-# ${3:$} : executables and shared libraries whos dependencies we care about
-
-MERGED_SO="$1"; shift
-PIC_LIBS="$1"; shift
-
-GCC=${GCC-i386-gnu-gcc}
-LD=${LD-i386-gnu-ld}
-OBJDUMP=${OBJDUMP-i386-gnu-objdump}
-OBJCOPY=${OBJCOPY-i386-gnu-objcopy}
-
-DEP_FLAGS_FILE=/tmp/,depflags.$$
-MERGED_PIC_LIB=/tmp/,libmerged_pic.a.$$
-
-#trap "rm -f $DEP_FLAGS_FILE $MERGED_PIC_LIB" 0
-
-$OBJDUMP --dynamic-syms "$@" 2>/dev/null|sed -n 's/^.*\*UND\*.* \([^ ]*\)$/-u\1/p'|sort -u > $DEP_FLAGS_FILE
-
-$LD -o $MERGED_PIC_LIB `cat $DEP_FLAGS_FILE` -r $PIC_LIBS \
-&& $GCC -nostdlib -shared -Wl,-soname=`basename $MERGED_SO` \
- -o $MERGED_SO.uns $MERGED_PIC_LIB \
-&& $OBJCOPY --strip-debug $MERGED_SO.uns $MERGED_SO \
-&& rm -f $MERGED_SO.uns