This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
integrate change#11374 from maint-5.6
[perl5.git] / hints / rhapsody.sh
CommitLineData
8f1f23e8
W
1##
2# Rhapsody (Mac OS X Server) hints
437cf188 3# Wilfredo Sanchez <wsanchez@mit.edu>
8f1f23e8
W
4##
5
f556e5b9
JH
6##
7# Paths
8##
8f1f23e8 9
f556e5b9 10# BSD paths
e32f0149
JH
11case "$prefix" in
12'')
13 prefix='/usr/local'; # Built-in perl uses /usr
14 siteprefix='/usr/local';
15 vendorprefix='/usr/local'; usevendorprefix='define';
8f1f23e8 16
e32f0149
JH
17 # 4BSD uses ${prefix}/share/man, not ${prefix}/man.
18 # Don't put man pages in ${prefix}/lib; that's goofy.
19 man1dir="${prefix}/share/man/man1";
20 man3dir="${prefix}/share/man/man3";
f556e5b9 21
e32f0149
JH
22 # Where to put modules.
23 # Built-in perl uses /System/Library/Perl
24 privlib='/Local/Library/Perl';
25 sitelib='/Local/Library/Perl';
26 vendorlib='/Network/Library/Perl';
27 ;;
28esac
f556e5b9
JH
29
30##
31# Tool chain settings
32##
33
34# Since we can build fat, the archname doesn't need the processor type
35archname='rhapsody';
8f1f23e8
W
36
37# nm works.
38usenm='true';
f556e5b9
JH
39
40# Libc is in libsystem.
41libc='/System/Library/Frameworks/System.framework/System';
8f1f23e8
W
42
43# Optimize.
44optimize='-O3';
45
46# We have a prototype for telldir.
f556e5b9 47ccflags="${ccflags} -pipe -fno-common -DHAS_TELLDIR_PROTOTYPE";
8f1f23e8 48
4e644a1e
W
49# cpp-precomp is problematic.
50cppflags='-traditional-cpp';
51
f556e5b9
JH
52# Shared library extension is .dylib.
53# Bundle extension is .bundle.
8f1f23e8
W
54ld='cc';
55so='dylib';
56dlext='bundle';
f556e5b9
JH
57dlsrc='dl_dyld.xs';
58usedl='define';
8f1f23e8
W
59cccdlflags='';
60lddlflags="${ldflags} -bundle -undefined suppress";
f556e5b9 61ldlibpthname='DYLD_LIBRARY_PATH';
8f1f23e8 62useshrplib='true';
8f1f23e8 63
f556e5b9
JH
64##
65# System libraries
66##
67
8f1f23e8
W
68# vfork works
69usevfork='true';
70
71# malloc works
72usemymalloc='n';
5cf1d1f1 73
4e644a1e
W
74# Case-insensitive filesystems don't get along with Makefile and
75# makefile in the same place. Since Darwin uses GNU make, this dodges
76# the problem.
437cf188 77firstmakefile=GNUmakefile;