path: root/dh
diff options
authorJoey Hess <>2011-06-14 17:22:34 -0400
committerJoey Hess <>2011-06-14 17:24:27 -0400
commite8c799129672d5b7dbac58a06fadd175cffaa7ed (patch)
tree646fc7c78883971fbddb6aaa8d05bd4f4317248f /dh
parentcbe68c8579e8abc03aeff939306b2d34cb1fe8ac (diff)
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.
Diffstat (limited to 'dh')
1 files changed, 4 insertions, 1 deletions
diff --git a/dh b/dh
index 50e0f14..7c53611 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<dh> sets environment variables listed by B<dpkg-buildflags>, unless
+they are already set. It supports DEB_BUILD_OPTIONS=noopt too.
B<dh> uses the B<DH_INTERNAL_OPTIONS> 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,
# If make is using a jobserver, but it is not available
# to this process, clean out MAKEFLAGS. This avoids