summaryrefslogtreecommitdiff
path: root/mk/platform
diff options
context:
space:
mode:
authortron <tron>2009-04-24 11:54:14 +0000
committertron <tron>2009-04-24 11:54:14 +0000
commitc627f7115309d4f1312102492052e4556cb8a4c3 (patch)
treeb278f2e019ec709a19476678cdda655552e5d317 /mk/platform
parentcc07da30c4a4bc962329c62f1086c24d7a72a97a (diff)
downloadpkgsrc-c627f7115309d4f1312102492052e4556cb8a4c3.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/platform')
-rw-r--r--mk/platform/Darwin.mk8
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".