diff options
author | Modestas Vainius <modax@debian.org> | 2011-06-19 23:53:14 +0300 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-06-19 18:01:32 -0400 |
commit | fcfcd1298f6ea1fcfb2b2b5a529303270aa800d9 (patch) | |
tree | d6196eff0e4e54fb73edf5c771610d904aa0483b /dh | |
parent | 1722a1bcfed9558cc438f3c0a1b9e024b46986cc (diff) | |
download | debhelper-fcfcd1298f6ea1fcfb2b2b5a529303270aa800d9.tar.gz |
Always respect DEB_${flag}_{APPEND,SET} envvars.
Do that even when dpkg-buildpackage modifies environment variables. Also
document DEB_${flag}_{APPEND,SET} as recommended way to override standard build
flags.
Diffstat (limited to 'dh')
-rwxr-xr-x | dh | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -193,6 +193,18 @@ sequence addons like this: %: dh $@ --with quilt +In order to override standard build flags, export appropriate environment +variables as documented in the L<dpkg-buildflags(1)> manual page. They will be +preferred over directly exported their counterparts (CFLAGS, CXXFLAGS, LDFLAGS +etc.). For example, to append -Wall to the standard CFLAGS and CXXFLAGS, use: + + #!/usr/bin/make -f + export DEB_CFLAGS_APPEND = -Wall + export DEB_CXXFLAGS_APPEND = -Wall + + %: + dh $@ + Here is an example of overriding where the B<dh_auto_>I<*> commands find the package's source, for a package where the source is located in a subdirectory. |