From c627f7115309d4f1312102492052e4556cb8a4c3 Mon Sep 17 00:00:00 2001 From: tron Date: Fri, 24 Apr 2009 11:54:14 +0000 Subject: 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. --- mk/platform/Darwin.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'mk/platform') 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". -- cgit v1.2.3