summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
Diffstat (limited to 'hints')
-rw-r--r--hints/cygwin.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/hints/cygwin.sh b/hints/cygwin.sh
index 1fbe5a670e..7be173557c 100644
--- a/hints/cygwin.sh
+++ b/hints/cygwin.sh
@@ -19,9 +19,11 @@ then
plibpth=`cd $plibpth && pwd`
fi
so='dll'
-# - eliminate -lc, implied by gcc
+# - eliminate -lc, implied by gcc and a symlink to libcygwin.a
libswanted=`echo " $libswanted " | sed -e 's/ c / /g'`
-libswanted="$libswanted cygipc cygwin kernel32"
+# - eliminate -lm, symlink to libcygwin.a
+libswanted=`echo " $libswanted " | sed -e 's/ m / /g'`
+libswanted="$libswanted cygipc"
test -z "$optimize" && optimize='-O2'
# - otherwise i686-cygwin
archname='cygwin'