From e8c799129672d5b7dbac58a06fadd175cffaa7ed Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 14 Jun 2011 17:22:34 -0400 Subject: dpkg-buildflags support * dh_auto_build, dh_auto_configure, dh: Set environment variables listed by dpkg-buildflags --export. Any environment variables that are already set to other values will not be changed. Closes: #544844 * Also, support DEB_BUILD_OPTIONS=noopt, by changing -O2 to -O0. --- dh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'dh') diff --git a/dh b/dh index 50e0f14d..7c53611a 100755 --- a/dh +++ b/dh @@ -273,6 +273,9 @@ that is in the specified sequence. It then continues with the next command in the sequence. The B<--until>, B<--before>, B<--after>, and B<--remaining> options can override this behavior. +B sets environment variables listed by B, unless +they are already set. It supports DEB_BUILD_OPTIONS=noopt too. + B uses the B environment variable to pass information through to debhelper commands that are run inside override targets. The contents (and indeed, existence) of this environment variable, as the name @@ -310,7 +313,7 @@ init(options => { bundling => 0, ); inhibit_log(); - +set_buildflags(); # If make is using a jobserver, but it is not available # to this process, clean out MAKEFLAGS. This avoids -- cgit v1.2.3