* speclib: New file.

* Makefile.in: Create library versions of automode.o, textmode.o, and binmode.o
for easier use on command line.  Create libpthread.a, libm.a, and libc.a with
subsets of exports found in libcygwin.a.
This commit is contained in:
Christopher Faylor
2001-12-31 03:19:29 +00:00
parent cdd3a8bd67
commit e56f4d7fc4
3 changed files with 40 additions and 3 deletions

12
winsup/cygwin/speclib Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/sh
case "$1" in
-v) v="-v"; shift
esac
lib=$1; shift
nm=$1; shift
dlltool=$1; shift
def=$1; shift
# trap "rm /tmp/$$.def" 0 1 2 15
(echo "LIBRARY cygwin1.dll
EXPORTS"; $nm --extern-only --defined-only $* | sed -e '/^[ ]*$/d' -e '/:$/d' -e 's/^.* _\(.*\)/\1/' | grep $v -f - -w $def |egrep -vi '^library|exports|^$' | sort) > /tmp/$$.def
exec $dlltool -d /tmp/$$.def -l "$lib" -D /dev/null