summaryrefslogtreecommitdiffstats
path: root/share/mk
diff options
context:
space:
mode:
authorfjoe <fjoe@FreeBSD.org>2011-11-29 08:20:23 +0000
committerfjoe <fjoe@FreeBSD.org>2011-11-29 08:20:23 +0000
commitc986ef0cb9b8419ddca540949fcba800d44dcccc (patch)
treeecc5699c453ffd728ba194ad5191213339ab7644 /share/mk
parentb050d953ee0f6fb7e2303645b5089b4e0b456f0c (diff)
downloadFreeBSD-src-c986ef0cb9b8419ddca540949fcba800d44dcccc.zip
FreeBSD-src-c986ef0cb9b8419ddca540949fcba800d44dcccc.tar.gz
Allow NO_FOO to override WITH_FOO that could be specified in /etc/src.conf.
This is required to override knobs (e.g. WITH_PROFILE) during buildworld stages in Makefile.inc1 (otherwise the build is stopped due to both WITH_FOO and WITHOUT_FOO defined).
Diffstat (limited to 'share/mk')
-rw-r--r--share/mk/bsd.own.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk
index e0afdf4..82ccefc 100644
--- a/share/mk/bsd.own.mk
+++ b/share/mk/bsd.own.mk
@@ -207,6 +207,9 @@ COMPRESS_EXT?= .gz
MAN \
PROFILE
.if defined(NO_${var})
+.if defined(WITH_${var})
+.undef WITH_${var}
+.endif
WITHOUT_${var}=
.endif
.endfor
OpenPOWER on IntegriCloud