summaryrefslogtreecommitdiff
path: root/hints/cygwin.sh
blob: 4843200f8500100145ab686101cb87b9144565db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#! /bin/sh
# cygwin.sh - hints for building perl using the Cygwin environment for Win32
#

# not otherwise settable
exe_ext='.exe'
firstmakefile='GNUmakefile'
case "$ldlibpthname" in
'') ldlibpthname=PATH ;;
esac

# mandatory (overrides incorrect defaults)
test -z "$cc" && cc='gcc'
if test -z "$plibpth"
then
    plibpth=`gcc -print-file-name=libc.a`
    plibpth=`dirname $plibpth`
    plibpth=`cd $plibpth && pwd`
fi
so='dll'
# - eliminate -lc, implied by gcc
libswanted=`echo " $libswanted " | sed -e 's/ c / /g'`
libswanted="$libswanted cygipc cygwin kernel32"
# - otherwise i686-cygwin
archname='cygwin'

# dynamic loading
ld='ld2'
# - otherwise -fpic
cccdlflags=' '

# optional(ish)
# - perl malloc needs to be unpolluted
bincompat5005='undef'

# stubs (ENOSYS, not implemented)
d_chroot='undef'
d_seteuid='undef'
d_setegid='undef'

# strip exe's and dll's
#ldflags="$ldflags -s"
#ccdlflags="$ccdlflags -s"
#lddlflags="$lddlflags -s"