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