This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
To: Perl Porters <perl5-porters@perl.org>
[perl5.git] / hints / cygwin.sh
1 #! /bin/sh
2 # cygwin.sh - hints for building perl using the Cygwin environment for Win32
3 #
4 # Many of these inflexible settings should be changed to allow command-
5 # line overrides and allow for variations in local set-ups.
6 # I have made first guesses at some of these, but would welcome 
7 # corrections from someone actually using Cygwin.
8 #  Andy Dougherty  <doughera@lafayette.edu> Tue Sep 28 12:39:38 EDT 1999
9
10 _exe='.exe'
11 exe_ext='.exe'
12 # work around case-insensitive file names
13 firstmakefile='GNUmakefile'
14 sharpbang='#!'
15 startsh='#!/bin/sh'
16
17 archname='cygwin'
18 test -z "$cc" && cc='gcc'
19 libpth='/usr/i586-cygwin32/lib /usr/lib /usr/local/lib'
20 so='dll'
21 libs='-lcygwin -lm -lkernel32'
22 #optimize='-g'
23 # Is -I/usr/include *really* needed?
24 # Is -I/usr/local/include *really* needed?  I thought gcc always looked there.
25 ccflags="$ccflags -DCYGWIN -I/usr/include -I/usr/local/include"
26 # Is -L/usr/lib *really* needed?
27 ldflags="$ldflags -L/usr/i586-cygwin32/lib -L/usr/lib -L/usr/local/lib"
28 test -z "$usemymalloc" && usemymalloc='n'
29 dlsrc='dl_cygwin.xs'
30 cccdlflags=' '
31 ld='ld2'
32 # Is -L/usr/local/lib *really* needed?
33 lddlflags="$lddlflags -L/usr/local/lib"
34 useshrplib='true'
35 libperl='libperl.a'
36 dlext='dll'
37 dynamic_ext=' '
38
39 # What if they aren't using $prefix=/usr/local ??
40 # Why is this needed at all?  Doesn't Configure suggest this?
41 test -z "$man1dir" && man1dir=/usr/local/man/man1
42 test -z "$man3dir" && man3dir=/usr/local/man/man3
43
44 case "$ldlibpthname" in
45 '') ldlibpthname=PATH ;;
46 esac