2 # Darwin (Mac OS) hints
3 # Wilfredo Sanchez <wsanchez@mit.edu>
13 prefix='/usr/local'; # Built-in perl uses /usr
14 siteprefix='/usr/local';
15 vendorprefix='/usr/local'; usevendorprefix='define';
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";
22 # Where to put modules.
23 # Built-in perl uses /System/Library/Perl
24 privlib='/Library/Perl';
25 sitelib='/Library/Perl';
26 vendorlib='/Network/Library/Perl';
34 # Since we can build fat, the archname doesn't need the processor type
40 # Libc is in libsystem.
41 #libc='/usr/lib/libSystem.dylib';
46 # We have a prototype for telldir.
47 ccflags="${ccflags} -pipe -fno-common -DHAS_TELLDIR_PROTOTYPE";
49 # At least on Darwin 1.3.x:
51 # # define INT32_MIN -2147483648
53 # double a = INT32_MIN;
54 # printf ("INT32_MIN=%g\n", a);
58 # INT32_MIN=2.14748e+09
59 # Note that the INT32_MIN has become positive.
60 # INT32_MIN is set in /usr/include/stdint.h by:
61 # #define INT32_MIN -2147483648
62 # which seems to break the gcc. Defining INT32_MIN as (-2147483647-1)
63 # seems to work. INT64_MIN seems to be similarly broken.
64 # -- Nicholas Clark, Ken Williams, and Edward Moy
66 ccflags="${ccflags} -DINT32_MIN_BROKEN -DINT64_MIN_BROKEN"
68 # cpp-precomp is problematic.
69 cppflags='-traditional-cpp';
71 # Shared library extension is .dylib.
72 # Bundle extension is .bundle.
76 dlsrc='dl_dyld.xs'; usedl='define';
77 cccdlflags=' '; # space, not empty, because otherwise we get -fpic
78 lddlflags="${ldflags} -bundle -undefined suppress";
79 ldlibpthname='DYLD_LIBRARY_PATH';
96 # Locales aren't feeling well.
97 LC_ALL=C; export LC_ALL;
99 # Case-insensitive filesystems don't get along with Makefile and
100 # makefile in the same place. Since Darwin uses GNU make, this dodges
102 firstmakefile=GNUmakefile;