X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Fcygwin.sh;h=e88cab7930c575cda287dbf3c6ff8f2345e16a31;hb=522b859adcc800ddbbe593fba580633bb305644f;hp=ba84df49d5c4443a9bb1e31c0f709961ab0e1c3e;hpb=d702ae4256b191c7ab78dd4e746c2175206f38ce;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/cygwin.sh b/hints/cygwin.sh index ba84df4..e88cab7 100644 --- a/hints/cygwin.sh +++ b/hints/cygwin.sh @@ -8,28 +8,33 @@ firstmakefile='GNUmakefile' case "$ldlibpthname" in '') ldlibpthname=PATH ;; esac +archobjs='cygwin.o' -# mandatory (overrides defaults) +# mandatory (overrides incorrect defaults) test -z "$cc" && cc='gcc' -if test -z "$libpth" +if test -z "$plibpth" then - libpth=`gcc -print-file-name=libc.a` - libpth=`dirname $libpth` - libpth=`cd $libpth && pwd` + plibpth=`gcc -print-file-name=libc.a` + plibpth=`dirname $plibpth` + plibpth=`cd $plibpth && pwd` fi so='dll' -libs='-lcygwin -lm -lkernel32' -ccflags="$ccflags -DCYGWIN" +# - eliminate -lc, implied by gcc and a symlink to libcygwin.a +libswanted=`echo " $libswanted " | sed -e 's/ c / /g'` +# - 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 +# - otherwise -fpic cccdlflags=' ' ld='ld2' -# optional(ish) -# - perl malloc needs to be unpolluted -bincompat5005='undef' -# - build shared libperl.dll -useshrplib='true' -libperl='libperl.a' +# Win9x problem with non-blocking read from a closed pipe +d_eofnblk='define' # strip exe's and dll's #ldflags="$ldflags -s"