diff options
author | tron <tron> | 2009-05-06 10:28:01 +0000 |
---|---|---|
committer | tron <tron> | 2009-05-06 10:28:01 +0000 |
commit | f3b61991b19b48fbf2ae9b0f77d40692fa027118 (patch) | |
tree | e45bf39ac14129e5bf2b0be6a7d5f68c0bf540fd /mk | |
parent | 716a735897d102ef9282df2759dc6a45569e429b (diff) | |
download | pkgsrc-f3b61991b19b48fbf2ae9b0f77d40692fa027118.tar.gz |
Allow to set the "bourne" shell used for buildlink3 wrappers per platform.
Set it to "/bin/ksh" under Mac OS X which should reduce package build times
by more than 20%.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/platform/Darwin.mk | 7 | ||||
-rw-r--r-- | mk/wrapper/wrapper-defs.mk | 5 |
2 files changed, 9 insertions, 3 deletions
diff --git a/mk/platform/Darwin.mk b/mk/platform/Darwin.mk index 45d2af71226..bc2b9f480c6 100644 --- a/mk/platform/Darwin.mk +++ b/mk/platform/Darwin.mk @@ -1,4 +1,4 @@ -# $NetBSD: Darwin.mk,v 1.36 2009/04/27 12:03:36 tron Exp $ +# $NetBSD: Darwin.mk,v 1.37 2009/05/06 10:28:01 tron Exp $ # # Variable definitions for the Darwin operating system. @@ -112,6 +112,11 @@ CONFIGURE_ENV+= ac_cv_func_poll=no . endif .endif +# Use "/bin/ksh" for buildlink3 wrapper script to improve build performance. +.if exists(/bin/ksh) +WRAPPER_BIN_SH?= /bin/ksh +.endif + # If games are to be installed setgid, then SETGIDGAME is set to 'yes' # (it defaults to 'no' as per defaults/mk.conf). # Set the group and mode to meaningful values in that case (defaults to diff --git a/mk/wrapper/wrapper-defs.mk b/mk/wrapper/wrapper-defs.mk index 229a322b8d9..06556d6bb53 100644 --- a/mk/wrapper/wrapper-defs.mk +++ b/mk/wrapper/wrapper-defs.mk @@ -1,4 +1,4 @@ -# $NetBSD: wrapper-defs.mk,v 1.2 2005/10/10 12:33:29 tv Exp $ +# $NetBSD: wrapper-defs.mk,v 1.3 2009/05/06 10:28:01 tron Exp $ # # Copyright (c) 2004 The NetBSD Foundation, Inc. # All rights reserved. @@ -41,6 +41,7 @@ WRAPPER_DIR= ${WRKDIR}/.wrapper WRAPPER_BINDIR= ${WRAPPER_DIR}/bin WRAPPER_TMPDIR= ${WRAPPER_DIR}/tmp WRAPPER_SRCDIR= ${.CURDIR}/../../mk/wrapper -WRAPPER_SHELL?= ${SH} +WRAPPER_BIN_SH?= ${SH} +WRAPPER_SHELL?= ${WRAPPER_BIN_SH} .endif # WRAPPER_DEFS_MK |