1#! /bin/sh 2# cygwin.sh - hints for building perl using the Cygwin environment for Win32 3# 4 5# not otherwise settable 6exe_ext='.exe' 7firstmakefile='GNUmakefile' 8case "$ldlibpthname" in 9'') ldlibpthname=PATH ;; 10esac 11archobjs='cygwin.o' 12 13# mandatory (overrides incorrect defaults) 14test -z "$cc" && cc='gcc' 15if test -z "$plibpth" 16then 17 plibpth=`gcc -print-file-name=libc.a` 18 plibpth=`dirname $plibpth` 19 plibpth=`cd $plibpth && pwd` 20fi 21so='dll' 22# - eliminate -lc, implied by gcc and a symlink to libcygwin.a 23libswanted=`echo " $libswanted " | sed -e 's/ c / /g'` 24# - eliminate -lm, symlink to libcygwin.a 25libswanted=`echo " $libswanted " | sed -e 's/ m / /g'` 26libswanted="$libswanted cygipc" 27test -z "$optimize" && optimize='-O2' 28ccflags="$ccflags -DPERL_USE_SAFE_PUTENV" 29# - otherwise i686-cygwin 30archname='cygwin' 31 32# dynamic loading 33# - otherwise -fpic 34cccdlflags=' ' 35ld='ld2' 36 37# optional(ish) 38# - perl malloc needs to be unpolluted 39bincompat5005='undef' 40 41# Win9x problem with non-blocking read from a closed pipe 42d_eofnblk='define' 43 44# strip exe's and dll's 45#ldflags="$ldflags -s" 46#ccdlflags="$ccdlflags -s" 47#lddlflags="$lddlflags -s" 48