Commit | Line | Data |
---|---|---|
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 | 6 | exe_ext='.exe' |
f89d6eaa | 7 | firstmakefile='GNUmakefile' |
d702ae42 | 8 | case "$ldlibpthname" in |
9 | '') ldlibpthname=PATH ;; | |
10 | esac | |
f89d6eaa | 11 | |
d702ae42 | 12 | # mandatory (overrides defaults) |
c22e42be | 13 | test -z "$cc" && cc='gcc' |
d702ae42 | 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 | |
f89d6eaa | 20 | so='dll' |
1cab015a | 21 | libs='-lcygwin -lm -lkernel32' |
d702ae42 | 22 | ccflags="$ccflags -DCYGWIN" |
23 | archname='cygwin' | |
f89d6eaa | 24 | cccdlflags=' ' |
8736538c | 25 | ld='ld2' |
d702ae42 | 26 | |
27 | # optional(ish) | |
28 | # - perl malloc needs to be unpolluted | |
29 | bincompat5005='undef' | |
30 | # - build shared libperl.dll | |
8736538c | 31 | useshrplib='true' |
f89d6eaa | 32 | libperl='libperl.a' |
5cf1d1f1 | 33 | |
d702ae42 | 34 | # strip exe's and dll's |
35 | #ldflags="$ldflags -s" | |
36 | #ccdlflags="$ccdlflags -s" | |
37 | #lddlflags="$lddlflags -s" |