This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
cygwin update (from Eric Fifer <efifer@sanwaint.com>)
[perl5.git] / hints / cygwin.sh
index ebe8618..47c2092 100644 (file)
@@ -8,6 +8,7 @@ firstmakefile='GNUmakefile'
 case "$ldlibpthname" in
 '') ldlibpthname=PATH ;;
 esac
+archobjs='cygwin.o'
 
 # mandatory (overrides incorrect defaults)
 test -z "$cc" && cc='gcc'
@@ -21,14 +22,14 @@ so='dll'
 # - eliminate -lc, implied by gcc
 libswanted=`echo " $libswanted " | sed -e 's/ c / /g'`
 libswanted="$libswanted cygipc cygwin kernel32"
-ccflags="$ccflags -DCYGWIN"
+test -z "$optimize" && optimize='-O2'
 # - otherwise i686-cygwin
 archname='cygwin'
 
 # dynamic loading
-ld='ld2'
 # - otherwise -fpic
 cccdlflags=' '
+ld='ld2'
 
 # optional(ish)
 # - perl malloc needs to be unpolluted
@@ -36,8 +37,9 @@ bincompat5005='undef'
 
 # stubs (ENOSYS, not implemented)
 d_chroot='undef'
-d_seteuid='undef'
-d_setegid='undef'
+
+# Win9x problem with non-blocking read from a closed pipe
+d_eofnblk='define'
 
 # strip exe's and dll's
 #ldflags="$ldflags -s"