summaryrefslogtreecommitdiffstats
path: root/contrib/perl5/hints/cygwin.sh
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/perl5/hints/cygwin.sh')
-rw-r--r--contrib/perl5/hints/cygwin.sh13
1 files changed, 6 insertions, 7 deletions
diff --git a/contrib/perl5/hints/cygwin.sh b/contrib/perl5/hints/cygwin.sh
index 42114c2..c57d3f6 100644
--- a/contrib/perl5/hints/cygwin.sh
+++ b/contrib/perl5/hints/cygwin.sh
@@ -19,9 +19,13 @@ 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'
+ccflags="$ccflags -DPERL_USE_SAFE_PUTENV"
# - otherwise i686-cygwin
archname='cygwin'
@@ -34,11 +38,6 @@ ld='ld2'
# - perl malloc needs to be unpolluted
bincompat5005='undef'
-# stubs (ENOSYS, not implemented)
-d_chroot='undef'
-d_seteuid='undef'
-d_setegid='undef'
-
# Win9x problem with non-blocking read from a closed pipe
d_eofnblk='define'
OpenPOWER on IntegriCloud