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 | |
4fabb596 | 12 | # mandatory (overrides incorrect defaults) |
c22e42be | 13 | test -z "$cc" && cc='gcc' |
4fabb596 | 14 | if test -z "$plibpth" |
d702ae42 | 15 | then |
4fabb596 | 16 | plibpth=`gcc -print-file-name=libc.a` |
17 | plibpth=`dirname $plibpth` | |
18 | plibpth=`cd $plibpth && pwd` | |
d702ae42 | 19 | fi |
f89d6eaa | 20 | so='dll' |
4fabb596 | 21 | # - eliminate -lc, implied by gcc |
22 | libswanted=`echo " $libswanted " | sed -e 's/ c / /g'` | |
23 | libswanted="$libswanted cygipc cygwin kernel32" | |
4fabb596 | 24 | # - otherwise i686-cygwin |
d702ae42 | 25 | archname='cygwin' |
4fabb596 | 26 | |
27 | # dynamic loading | |
8736538c | 28 | ld='ld2' |
4fabb596 | 29 | # - otherwise -fpic |
30 | cccdlflags=' ' | |
d702ae42 | 31 | |
32 | # optional(ish) | |
33 | # - perl malloc needs to be unpolluted | |
34 | bincompat5005='undef' | |
5cf1d1f1 | 35 | |
b82baff6 | 36 | # stubs (ENOSYS, not implemented) |
37 | d_chroot='undef' | |
38 | d_seteuid='undef' | |
39 | d_setegid='undef' | |
40 | ||
d702ae42 | 41 | # strip exe's and dll's |
42 | #ldflags="$ldflags -s" | |
43 | #ccdlflags="$ccdlflags -s" | |
44 | #lddlflags="$lddlflags -s" |