Resync with mainline
[p5sagit/p5-mst-13.2.git] / hints / cygwin.sh
CommitLineData
5aabfad6 1#! /bin/sh
2c2d71f5 2# cygwin.sh - hints for building perl using the Cygwin environment for Win32
5aabfad6 3#
f89d6eaa 4
146174a9 5# not otherwise settable
f89d6eaa 6exe_ext='.exe'
f89d6eaa 7firstmakefile='GNUmakefile'
146174a9 8case "$ldlibpthname" in
9'') ldlibpthname=PATH ;;
10esac
f89d6eaa 11
146174a9 12# mandatory (overrides incorrect defaults)
13test -z "$cc" && cc='gcc'
14if test -z "$plibpth"
15then
16 plibpth=`gcc -print-file-name=libc.a`
17 plibpth=`dirname $plibpth`
18 plibpth=`cd $plibpth && pwd`
19fi
f89d6eaa 20so='dll'
146174a9 21# - eliminate -lc, implied by gcc
22libswanted=`echo " $libswanted " | sed -e 's/ c / /g'`
23libswanted="$libswanted cygipc cygwin kernel32"
146174a9 24# - otherwise i686-cygwin
25archname='cygwin'
26
27# dynamic loading
8736538c 28ld='ld2'
146174a9 29# - otherwise -fpic
30cccdlflags=' '
f89d6eaa 31
146174a9 32# optional(ish)
33# - perl malloc needs to be unpolluted
34bincompat5005='undef'
5cf1d1f1 35
cb50131a 36# stubs (ENOSYS, not implemented)
37d_chroot='undef'
38d_seteuid='undef'
39d_setegid='undef'
40
146174a9 41# strip exe's and dll's
42#ldflags="$ldflags -s"
43#ccdlflags="$ccdlflags -s"
44#lddlflags="$lddlflags -s"