Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/speclib')
-rwxr-xr-xwinsup/cygwin/speclib15
1 files changed, 13 insertions, 2 deletions
diff --git a/winsup/cygwin/speclib b/winsup/cygwin/speclib
index f9c467685..6f8e0cd73 100755
--- a/winsup/cygwin/speclib
+++ b/winsup/cygwin/speclib
@@ -1,12 +1,23 @@
#!/bin/sh
+# speclib - Make a special version of the cygwin import library.
+#
+# Copyright 2001, 2002 Red Hat, Inc.
+#
+# This file is part of Cygwin.
+#
+# This software is a copyrighted work licensed under the terms of the
+# Cygwin license. Please consult the file "CYGWIN_LICENSE" for
+# details.
+
case "$1" in
-v) v="-v"; shift
esac
lib=$1; shift
nm=$1; shift
dlltool=$1; shift
+as=$1; shift
def=$1; shift
-trap "rm /tmp/$$.def" 0 1 2 15
+trap "rm -f /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
+$dlltool --as=$as -d /tmp/$$.def -l "$lib"