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