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
1 #! /bin/sh
2 # cygwin.sh - hints for building perl using the Cygwin environment for Win32
3 #
4
5 # not otherwise settable
6 exe_ext='.exe'
7 firstmakefile='GNUmakefile'
8 case "$ldlibpthname" in
9 '') ldlibpthname=PATH ;;
10 esac
11
12 # mandatory (overrides incorrect defaults)
13 test -z "$cc" && cc='gcc'
14 if test -z "$plibpth"
15 then
16     plibpth=`gcc -print-file-name=libc.a`
17     plibpth=`dirname $plibpth`
18     plibpth=`cd $plibpth && pwd`
19 fi
20 so='dll'
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
26 archname='cygwin'
27
28 # dynamic loading
29 ld='ld2'
30 # - otherwise -fpic
31 cccdlflags=' '
32
33 # optional(ish)
34 # - perl malloc needs to be unpolluted
35 bincompat5005='undef'
36
37 # stubs (ENOSYS, not implemented)
38 d_chroot='undef'
39 d_seteuid='undef'
40 d_setegid='undef'
41
42 # strip exe's and dll's
43 #ldflags="$ldflags -s"
44 #ccdlflags="$ccdlflags -s"
45 #lddlflags="$lddlflags -s"