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 defaults)
13 test -z "$cc" && cc='gcc'
14 if test -z "$libpth"
15 then
16     libpth=`gcc -print-file-name=libc.a`
17     libpth=`dirname $libpth`
18     libpth=`cd $libpth && pwd`
19 fi
20 so='dll'
21 libs='-lcygwin -lm -lkernel32'
22 ccflags="$ccflags -DCYGWIN"
23 archname='cygwin'
24 cccdlflags=' '
25 ld='ld2'
26
27 # optional(ish)
28 # - perl malloc needs to be unpolluted
29 bincompat5005='undef'
30 # - build shared libperl.dll
31 useshrplib='true'
32 libperl='libperl.a'
33
34 # strip exe's and dll's
35 #ldflags="$ldflags -s"
36 #ccdlflags="$ccdlflags -s"
37 #lddlflags="$lddlflags -s"