X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Fcygwin.sh;h=c57d3f6fdf76279ac2fd5f732a06d45b6b7c2e13;hb=2e34cc90b22e8d09149d579a4d5db71a1836c9ca;hp=71c9a8334ea26c72e97851ad5e5284066ae4ffee;hpb=4fabb5965cb13ba2085b455bf751c89110c43659;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/cygwin.sh b/hints/cygwin.sh index 71c9a83..c57d3f6 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,22 +19,28 @@ 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" -ccflags="$ccflags -DCYGWIN" +# - 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' # dynamic loading -ld='ld2' # - otherwise -fpic cccdlflags=' ' +ld='ld2' # optional(ish) # - perl malloc needs to be unpolluted bincompat5005='undef' +# Win9x problem with non-blocking read from a closed pipe +d_eofnblk='define' + # strip exe's and dll's #ldflags="$ldflags -s" #ccdlflags="$ccdlflags -s"