summaryrefslogtreecommitdiff
path: root/hints/darwin.sh
diff options
context:
space:
mode:
authorWilfredo Sánchez <wsanchez@mit.edu>2001-07-27 12:13:15 -0700
committerJarkko Hietaniemi <jhi@iki.fi>2001-07-29 16:44:03 +0000
commit187122cbaf4bb21705259325ef8e0e420b0241df (patch)
treefb9f2390434fbbb35ed3e1995a603a19fa57f883 /hints/darwin.sh
parent6de678708ca27d8ff9604030551fb53b27f5c5be (diff)
downloadperl-187122cbaf4bb21705259325ef8e0e420b0241df.tar.gz
Clean up Darwin hints
Message-Id: <1A70CA3F-82FE-11D5-BFC6-003065D59FBA@thor.sbay.org> p4raw-id: //depot/perl@11476
Diffstat (limited to 'hints/darwin.sh')
-rw-r--r--hints/darwin.sh30
1 files changed, 19 insertions, 11 deletions
diff --git a/hints/darwin.sh b/hints/darwin.sh
index da34d65f96..947a4a7d2a 100644
--- a/hints/darwin.sh
+++ b/hints/darwin.sh
@@ -9,24 +9,34 @@
# BSD paths
case "$prefix" in
-'')
+'')
+ # Default install; use non-system directories
prefix='/usr/local'; # Built-in perl uses /usr
siteprefix='/usr/local';
vendorprefix='/usr/local'; usevendorprefix='define';
- # 4BSD uses ${prefix}/share/man, not ${prefix}/man.
- # Don't put man pages in ${prefix}/lib; that's goofy.
- man1dir="${prefix}/share/man/man1";
- man3dir="${prefix}/share/man/man3";
+ # Where to put modules.
+ privlib='/Library/Perl'; # Built-in perl uses /System/Library/Perl
+ sitelib='/Library/Perl';
+ vendorlib='/Network/Library/Perl';
+ ;;
+'/usr')
+ # We are building/replacing the built-in perl
+ siteprefix='/usr/local';
+ vendorprefix='/usr/local'; usevendorprefix='define';
# Where to put modules.
- # Built-in perl uses /System/Library/Perl
- privlib='/Library/Perl';
+ privlib='/System/Library/Perl';
sitelib='/Library/Perl';
vendorlib='/Network/Library/Perl';
;;
esac
+# 4BSD uses ${prefix}/share/man, not ${prefix}/man.
+# Don't put man pages in ${prefix}/lib; that's goofy.
+man1dir="${prefix}/share/man/man1";
+man3dir="${prefix}/share/man/man3";
+
##
# Tool chain settings
##
@@ -37,15 +47,13 @@ archname='darwin';
# nm works.
usenm='true';
-# Libc is in libsystem.
-#libc='/usr/lib/libSystem.dylib';
-
# Optimize.
if [ "x$optimize" = 'x' ]; then
optimize='-O3'
fi
-# XXX Unclear why we require -pipe and -fno-common here.
+# XXX Unclear why we require -pipe and -fno-common here. --Andy Dougherty
+# We don't like commons. --Fred Sánchez
ccflags="${ccflags} -pipe -fno-common"
# At least on Darwin 1.3.x: