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 ;;
12 # mandatory (overrides incorrect defaults)
13 test -z "$cc" && cc='gcc'
16 plibpth=`gcc -print-file-name=libc.a`
17 plibpth=`dirname $plibpth`
18 plibpth=`cd $plibpth && pwd`
21 # - eliminate -lc, implied by gcc
22 libswanted=`echo " $libswanted " | sed -e 's/ c / /g'`
23 libswanted="$libswanted cygipc cygwin kernel32"
24 ccflags="$ccflags -DCYGWIN"
25 # - otherwise i686-cygwin
34 # - perl malloc needs to be unpolluted
37 # stubs (ENOSYS, not implemented)
42 # strip exe's and dll's
43 #ldflags="$ldflags -s"
44 #ccdlflags="$ccdlflags -s"
45 #lddlflags="$lddlflags -s"