diff options
author | rillig <rillig> | 2006-07-15 23:58:52 +0000 |
---|---|---|
committer | rillig <rillig> | 2006-07-15 23:58:52 +0000 |
commit | b6adfebee14f196b927dc4a01a657ea5fb05412a (patch) | |
tree | a4b93f8fac3a6f560860ad528f5b8c399b8d67b1 /mk/bsd.hacks.mk | |
parent | 47a1539c822111a7cb2c8e2046222ed9978d7cc0 (diff) | |
download | pkgsrc-b6adfebee14f196b927dc4a01a657ea5fb05412a.tar.gz |
Split the variable BUILD_DEFS into those that are defined by packages
and those that are defined by the infrastructure (_BUILD_DEFS). This
allows the build-defs-message target to be moved to the end of
bsd.pkg.mk. Now it prints the correct result even in unprivileged
builds, which had been wrong due to the order in which the files have
been included. For example, ${UNPRIVILEGED_USER} was displayed as (not
defined) although its value was defined, which could be checked with
"bmake show-var".
Tested with one package that _does_ define BUILD_DEFS and with one that
doesn't. The behavior stays the same.
Diffstat (limited to 'mk/bsd.hacks.mk')
-rw-r--r-- | mk/bsd.hacks.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/bsd.hacks.mk b/mk/bsd.hacks.mk index 36c00cd5033..87f2d00d7b7 100644 --- a/mk/bsd.hacks.mk +++ b/mk/bsd.hacks.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.hacks.mk,v 1.2 2004/11/30 15:09:45 tv Exp $ +# $NetBSD: bsd.hacks.mk,v 1.3 2006/07/15 23:58:52 rillig Exp $ # # Copyright (c) 2004 The NetBSD Foundation, Inc. # All rights reserved. @@ -65,5 +65,5 @@ PKG_HACKS?= # empty # Record any package hacks that we use in the installed package. .if !empty(PKG_HACKS) -BUILD_DEFS+= PKG_HACKS +_BUILD_DEFS+= PKG_HACKS .endif |