diff options
author | tron <tron@pkgsrc.org> | 2009-04-24 11:54:14 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2009-04-24 11:54:14 +0000 |
commit | f93313e5ff28ff34953e734d7608fbe0cc4d61e6 (patch) | |
tree | b278f2e019ec709a19476678cdda655552e5d317 /mk | |
parent | 9d2f15190d3e4f37d2fdec1589a5a25b0edcdd00 (diff) | |
download | pkgsrc-f93313e5ff28ff34953e734d7608fbe0cc4d61e6.tar.gz |
Set "SH" to "/bin/ksh" under Mac OS X Leopard:
- "libtool" will use "ksh" if it gets rebuilt after this change.
- Buildlink wrappers will now use "ksh".
- Configure script will be executed using "ksh".
This improves build performance by more than 30%.
Change discussed on "tech-pkg" mailing list.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/platform/Darwin.mk | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mk/platform/Darwin.mk b/mk/platform/Darwin.mk index ad354b8d47d..9b17a792b47 100644 --- a/mk/platform/Darwin.mk +++ b/mk/platform/Darwin.mk @@ -1,4 +1,4 @@ -# $NetBSD: Darwin.mk,v 1.34 2008/12/16 08:11:29 tron Exp $ +# $NetBSD: Darwin.mk,v 1.35 2009/04/24 11:54:14 tron Exp $ # # Variable definitions for the Darwin operating system. @@ -34,6 +34,12 @@ IMAKEOPTS+= -DBuildHtmlManPages=NO IMAKEOPTS+= -DInstallFlags=-c # do not set user or group .endif +# Use "/bin/ksh" under Mac OS X Leopard and newer because it is +# considerably faster that "/bin/sh" (BASH). +.if empty(MACHINE_PLATFORM:MDarwin-[0-8].*-*) +SH?= /bin/ksh +.endif + .if !defined(PKGSRC_COMPILER) || !empty(PKGSRC_COMPILER:Mgcc) # Use the GNU cpp, not the OS X cpp, don't look in "/usr/local/include" # before "/usr/include". |