X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Fcygwin.sh;h=e88cab7930c575cda287dbf3c6ff8f2345e16a31;hb=c6e7ee5baf1b7ad0b2d86890e4174d74a2709b05;hp=4843200f8500100145ab686101cb87b9144565db;hpb=1761cee512762c09b2a848d3c6cbd5a3b4232ffa;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/cygwin.sh b/hints/cygwin.sh index 4843200..e88cab7 100644 --- a/hints/cygwin.sh +++ b/hints/cygwin.sh @@ -8,6 +8,7 @@ firstmakefile='GNUmakefile' case "$ldlibpthname" in '') ldlibpthname=PATH ;; esac +archobjs='cygwin.o' # mandatory (overrides incorrect defaults) test -z "$cc" && cc='gcc' @@ -18,25 +19,22 @@ 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'` +test -z "$optimize" && optimize='-O2' +ccflags="$ccflags -DPERL_USE_SAFE_PUTENV" # - otherwise i686-cygwin archname='cygwin' # dynamic loading -ld='ld2' # - otherwise -fpic cccdlflags=' ' +ld='ld2' -# optional(ish) -# - 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' # strip exe's and dll's #ldflags="$ldflags -s"