This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
cygwin port
[perl5.git] / hints / cygwin.sh
CommitLineData
5aabfad6 1#! /bin/sh
2c2d71f5 2# cygwin.sh - hints for building perl using the Cygwin environment for Win32
5aabfad6 3#
f89d6eaa 4
d702ae42 5# not otherwise settable
f89d6eaa 6exe_ext='.exe'
f89d6eaa 7firstmakefile='GNUmakefile'
d702ae42
GS
8case "$ldlibpthname" in
9'') ldlibpthname=PATH ;;
10esac
5db16f6a 11archobjs='cygwin.o'
f89d6eaa 12
4fabb596 13# mandatory (overrides incorrect defaults)
c22e42be 14test -z "$cc" && cc='gcc'
4fabb596 15if test -z "$plibpth"
d702ae42 16then
4fabb596
GS
17 plibpth=`gcc -print-file-name=libc.a`
18 plibpth=`dirname $plibpth`
19 plibpth=`cd $plibpth && pwd`
d702ae42 20fi
f89d6eaa 21so='dll'
4fabb596
GS
22# - eliminate -lc, implied by gcc
23libswanted=`echo " $libswanted " | sed -e 's/ c / /g'`
24libswanted="$libswanted cygipc cygwin kernel32"
4fabb596 25# - otherwise i686-cygwin
d702ae42 26archname='cygwin'
4fabb596
GS
27
28# dynamic loading
4fabb596
GS
29# - otherwise -fpic
30cccdlflags=' '
5db16f6a 31ld='ld2'
d702ae42
GS
32
33# optional(ish)
34# - perl malloc needs to be unpolluted
35bincompat5005='undef'
5cf1d1f1 36
b82baff6
GS
37# stubs (ENOSYS, not implemented)
38d_chroot='undef'
39d_seteuid='undef'
40d_setegid='undef'
41
5db16f6a
FE
42# Win9x problem with non-blocking read from a closed pipe
43d_eofnblk='define'
44
d702ae42
GS
45# strip exe's and dll's
46#ldflags="$ldflags -s"
47#ccdlflags="$ccdlflags -s"
48#lddlflags="$lddlflags -s"