This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Re: [PATCH] Re: perl@10611
[perl5.git] / hints / darwin.sh
CommitLineData
f556e5b9
JH
1##
2# Darwin (Mac OS) hints
437cf188 3# Wilfredo Sanchez <wsanchez@mit.edu>
f556e5b9
JH
4##
5
6##
7# Paths
8##
9
10# BSD paths
11prefix='/usr';
12siteprefix='/usr/local';
13vendorprefix='/usr/local'; usevendorprefix='define';
14
15# 4BSD uses /usr/share/man, not /usr/man.
16# Don't put man pages in /usr/lib; that's goofy.
17man1dir='/usr/share/man/man1';
18man3dir='/usr/share/man/man3';
19
20# Where to put modules.
21privlib='/System/Library/Perl';
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='darwin';
31
32# nm works.
33usenm='true';
34
35# Libc is in libsystem.
36libc='/System/Library/Frameworks/System.framework/System';
37
38# Optimize.
39optimize='-O3';
40
41# We have a prototype for telldir.
42ccflags="${ccflags} -pipe -fno-common -DHAS_TELLDIR_PROTOTYPE";
43
2ece6c11
JH
44# For Errno.
45cppflags='-traditional-cpp';
46
f556e5b9
JH
47# Shared library extension is .dylib.
48# Bundle extension is .bundle.
49ld='cc';
50so='dylib';
51dlext='bundle';
52dlsrc='dl_dyld.xs'; usedl='define';
c374061b 53cccdlflags=' '; # space, not empty, because otherwise we get -fpic
f556e5b9
JH
54lddlflags="${ldflags} -bundle -undefined suppress";
55ldlibpthname='DYLD_LIBRARY_PATH';
56useshrplib='true';
57
58##
59# System libraries
60##
61
62# vfork works
63usevfork='true';
64
65# malloc works
66usemymalloc='n';
2ece6c11 67
d235852b
PP
68##
69# Build process
70##
71
72# Locales aren't feeling well.
73LC_ALL=C; export LC_ALL;
74
437cf188 75# HFS+ will throw "make depend" into confusion since
d235852b
PP
76# Makefile and makefile are the same.
77firstmakefile=GNUmakefile;
78