diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 1998-10-06 18:21:25 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 1998-10-06 18:21:25 +0000 |
| commit | f9039b2ae21988783feae9b362818e7923e82d14 (patch) | |
| tree | 6d6fe3679d73448758f9794e7d4d4f6b22a4adad /makefiles/aixmakesharedlib | |
| parent | 67e89232f9ba067825a158734a09e0fa21aacbe3 (diff) | |
Initial revision
git-svn-id: file:///fltk/svn/fltk/trunk@2 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'makefiles/aixmakesharedlib')
| -rwxr-xr-x | makefiles/aixmakesharedlib | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/makefiles/aixmakesharedlib b/makefiles/aixmakesharedlib new file mode 100755 index 000000000..8fd62a8d7 --- /dev/null +++ b/makefiles/aixmakesharedlib @@ -0,0 +1,24 @@ +#!/bin/sh +# +# aixmakesharedlib - a simple script for AIX shared lib creation from a +# non shared library +# +# Notes: +# - Should work for both AIX 3.2.x & 4.1.x +# - Copies original (non shared) lib to be lib.NS +# - May require slight modifications for different uses (this was written +# with the FL library in mind) +# + +/bin/rm -f shr.o syms.exp + +# create the exports list: +echo "#!" > syms.exp +dump -g $1 | egrep -e '[ \t]*[0-9]+' | sed 's/^[ \t]*[0-9][0-9]*[ \t]*[^ \t]//' | sed 's/^\.//' | sort | uniq >> syms.exp + +xlC -o shr.o $1 -bM:SRE -bE:syms.exp -bnoentry -lc -lm -lX11 + +mv $1 $1.NS + +ar ruv $1 shr.o syms.exp +/bin/rm -f shr.o syms.exp |
