2 # cygwin.sh - hints for building perl using the Cygwin environment for Win32
5 # not otherwise settable
7 firstmakefile='GNUmakefile'
8 case "$ldlibpthname" in
9 '') ldlibpthname=PATH ;;
13 # mandatory (overrides incorrect defaults)
14 test -z "$cc" && cc='gcc'
17 plibpth=`gcc -print-file-name=libc.a`
18 plibpth=`dirname $plibpth`
19 plibpth=`cd $plibpth && pwd`
22 # - eliminate -lc, implied by gcc and a symlink to libcygwin.a
23 libswanted=`echo " $libswanted " | sed -e 's/ c / /g'`
24 # - eliminate -lm, symlink to libcygwin.a
25 libswanted=`echo " $libswanted " | sed -e 's/ m / /g'`
26 libswanted="$libswanted cygipc"
27 test -z "$optimize" && optimize='-O2'
28 # - otherwise i686-cygwin
37 # - perl malloc needs to be unpolluted
40 # Win9x problem with non-blocking read from a closed pipe
43 # strip exe's and dll's
44 #ldflags="$ldflags -s"
45 #ccdlflags="$ccdlflags -s"
46 #lddlflags="$lddlflags -s"