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