summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam>2003-08-30 10:35:53 +0000
committerjlam <jlam>2003-08-30 10:35:53 +0000
commit8a9971a4b0a86e8266ddac7a828d8407a3602300 (patch)
tree1ff73dedbe408613246bef8ff4cc7dc0e5913d4e
parentcaf51240519139a5dd2067f7545adbb246f36194 (diff)
downloadpkgsrc-8a9971a4b0a86e8266ddac7a828d8407a3602300.tar.gz
There are three different parts we can add to the common transforming
cache to speed things up: passthru automatically accept certain options without further checking transform change -[IL]{${X11BASE},${LOCALBASE},${DEPOTBASE}/*} to the correct ${BUILDLINK_DIR} reference block block certain options without further checking Seeding the cache appropriately lets us handle large classes of options without having to go through the wrapper logic file, which generates a cache hit for every single option and bloats the cache quite bit more. The implementation is at the bottom of bsd.buildlink3.mk where ${_BLNK_WRAP_CACHE_ADD_TRANSFORM} is generated. For now, only do the passthru stuff, since I'm not sure of the correctness of the other two phases. "transform" is probably okay, but "block" may be a tad too aggressive.
-rw-r--r--mk/buildlink3/bsd.buildlink3.mk20
1 files changed, 18 insertions, 2 deletions
diff --git a/mk/buildlink3/bsd.buildlink3.mk b/mk/buildlink3/bsd.buildlink3.mk
index 8f7ed28fa3e..031cb9373be 100644
--- a/mk/buildlink3/bsd.buildlink3.mk
+++ b/mk/buildlink3/bsd.buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.buildlink3.mk,v 1.1.2.30 2003/08/30 10:22:00 jlam Exp $
+# $NetBSD: bsd.buildlink3.mk,v 1.1.2.31 2003/08/30 10:35:53 jlam Exp $
#
# An example package buildlink3.mk file:
#
@@ -422,13 +422,29 @@ CONFIGURE_ENV+= BUILDLINK_UPDATE_CACHE=no
# The caching code, which greatly speeds up the build process, works only
# on certain platforms.
#
-_BLNK_SEED_CACHE?= # passthru transform block
_BLNK_CACHE_ALL= # empty
_BLNK_CACHE_ALL+= Darwin-6*-*
_BLNK_CACHE_ALL+= IRIX-*-*
_BLNK_CACHE_ALL+= NetBSD-1.[5-9]*-*
_BLNK_CACHE_ALL+= SunOS-[25].[89]-*
+# There are three different parts we can add to the common transforming
+# cache to speed things up:
+#
+# passthru automatically accept certain options without
+# further checking
+#
+# transform change -[IL]{${X11BASE},${LOCALBASE},${DEPOTBASE}/*}
+# to the correct ${BUILDLINK_DIR} reference
+#
+# block block certain options without further checking
+#
+# Seeding the cache appropriately lets us handle large classes of options
+# without having to go through the wrapper logic file, which generates
+# a cache hit for every single option and bloats the cache quite bit more.
+#
+_BLNK_SEED_CACHE?= passthru # transform block
+
.for _pattern_ in ${_BLNK_CACHE_ALL}
. if !empty(MACHINE_PLATFORM:M${_pattern_})
CONFIGURE_ENV+= BUILDLINK_CACHE_ALL=yes