diff options
author | jlam <jlam> | 2004-02-04 01:13:04 +0000 |
---|---|---|
committer | jlam <jlam> | 2004-02-04 01:13:04 +0000 |
commit | cfa0fc15a2566828dec7815fcbb42d79f4901929 (patch) | |
tree | b1c7b568a0205579c61b8c52b49202d6cf1bab64 /mk/buildlink2 | |
parent | 7e37908612315eec8abc3398037749c2e395eb3f (diff) | |
download | pkgsrc-cfa0fc15a2566828dec7815fcbb42d79f4901929.tar.gz |
Instead of tedious validating every platform for full caching compliance,
just assume they do unless they're known _not_ to work. So far, only
Darwin-5.* suffers from this problem, apparently because they use some
bizarre version of zsh for /bin/sh.
Diffstat (limited to 'mk/buildlink2')
-rw-r--r-- | mk/buildlink2/bsd.buildlink2.mk | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/mk/buildlink2/bsd.buildlink2.mk b/mk/buildlink2/bsd.buildlink2.mk index e094188210b..6c81a68a6f6 100644 --- a/mk/buildlink2/bsd.buildlink2.mk +++ b/mk/buildlink2/bsd.buildlink2.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.buildlink2.mk,v 1.108 2004/02/02 10:26:42 jlam Exp $ +# $NetBSD: bsd.buildlink2.mk,v 1.109 2004/02/04 01:13:04 jlam Exp $ # # An example package buildlink2.mk file: # @@ -71,22 +71,21 @@ BUILDLINK_SHELL?= ${SH} # CONFIGURE_ENV+= BUILDLINK_UPDATE_CACHE=no -# The caching code, which greatly speeds up the build process, works only -# on certain platforms. +# The caching code, which greatly speeds up the build process, doesn't +# work completely correctly on certain platforms. # -_BLNK_CACHE_ALL= # empty -_BLNK_CACHE_ALL+= Darwin-6*-* -_BLNK_CACHE_ALL+= FreeBSD-*-* -_BLNK_CACHE_ALL+= IRIX-*-* -_BLNK_CACHE_ALL+= NetBSD-1.[5-9]*-* -_BLNK_CACHE_ALL+= SunOS-[25].[89]-* +_BLNK_PARTIAL_CACHE_ONLY= Darwin-5.*-* -.for _pattern_ in ${_BLNK_CACHE_ALL} +_BLNK_FULL_CACHING?= YES +.for _pattern_ in ${_BLNK_PARTIAL_CACHE_ONLY} . if !empty(MACHINE_PLATFORM:M${_pattern_}) -CONFIGURE_ENV+= BUILDLINK_CACHE_ALL=yes -MAKE_ENV+= BUILDLINK_CACHE_ALL=yes +_BLNK_FULL_CACHING= NO . endif .endfor +.if !empty(_BLNK_FULL_CACHING:M[yY][eE][sS]) +CONFIGURE_ENV+= BUILDLINK_CACHE_ALL=yes +MAKE_ENV+= BUILDLINK_CACHE_ALL=yes +.endif .if defined(USE_X11) USE_X11_LINKS?= YES |