Commit | Line | Data |
5aabfad6 |
1 | #! /bin/sh |
2c2d71f5 |
2 | # cygwin.sh - hints for building perl using the Cygwin environment for Win32 |
5aabfad6 |
3 | # |
c22e42be |
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 |
f89d6eaa |
9 | |
8736538c |
10 | _exe='.exe' |
f89d6eaa |
11 | exe_ext='.exe' |
12 | # work around case-insensitive file names |
13 | firstmakefile='GNUmakefile' |
14 | sharpbang='#!' |
15 | startsh='#!/bin/sh' |
16 | |
2c2d71f5 |
17 | archname='cygwin' |
c22e42be |
18 | test -z "$cc" && cc='gcc' |
1cab015a |
19 | libpth='/usr/i586-cygwin32/lib /usr/lib /usr/local/lib' |
f89d6eaa |
20 | so='dll' |
1cab015a |
21 | libs='-lcygwin -lm -lkernel32' |
f89d6eaa |
22 | #optimize='-g' |
c22e42be |
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' |
2c2d71f5 |
29 | dlsrc='dl_cygwin.xs' |
f89d6eaa |
30 | cccdlflags=' ' |
8736538c |
31 | ld='ld2' |
c22e42be |
32 | # Is -L/usr/local/lib *really* needed? |
33 | lddlflags="$lddlflags -L/usr/local/lib" |
8736538c |
34 | useshrplib='true' |
f89d6eaa |
35 | libperl='libperl.a' |
36 | dlext='dll' |
d493b042 |
37 | dynamic_ext=' ' |
f89d6eaa |
38 | |
c22e42be |
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 |
5cf1d1f1 |
43 | |
44 | case "$ldlibpthname" in |
45 | '') ldlibpthname=PATH ;; |
46 | esac |