add workaround for dlopen() bug on OpenBSD (relative paths that
[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
d702ae42 5# not otherwise settable
f89d6eaa 6exe_ext='.exe'
f89d6eaa 7firstmakefile='GNUmakefile'
d702ae42 8case "$ldlibpthname" in
9'') ldlibpthname=PATH ;;
10esac
f89d6eaa 11
d702ae42 12# mandatory (overrides defaults)
c22e42be 13test -z "$cc" && cc='gcc'
d702ae42 14if test -z "$libpth"
15then
16 libpth=`gcc -print-file-name=libc.a`
17 libpth=`dirname $libpth`
18 libpth=`cd $libpth && pwd`
19fi
f89d6eaa 20so='dll'
1cab015a 21libs='-lcygwin -lm -lkernel32'
d702ae42 22ccflags="$ccflags -DCYGWIN"
23archname='cygwin'
f89d6eaa 24cccdlflags=' '
8736538c 25ld='ld2'
d702ae42 26
27# optional(ish)
28# - perl malloc needs to be unpolluted
29bincompat5005='undef'
30# - build shared libperl.dll
8736538c 31useshrplib='true'
f89d6eaa 32libperl='libperl.a'
5cf1d1f1 33
d702ae42 34# strip exe's and dll's
35#ldflags="$ldflags -s"
36#ccdlflags="$ccdlflags -s"
37#lddlflags="$lddlflags -s"