Source: libpng Severity: wishlist Hello,
Please use the mechanism of DEB_*FLAGS_MAINT_APPEND instead of overriding CFLAGS, LDFLAGS, etc -- with the current way it is a problem for compiling special versions, it overrides some of the flags that I want to pass. Perhaps this needs dh compat v9 instead of the current v7 (although I think that it works with v7 as well). But updating compat and cleaning the rules file would probably not be a bad idea either, the multiarch and dpkg-buildflags stuff and the wayt to call ./configure would automatically sorted out with debhelper/dh. Example: export DEB_BUILD_MAINT_OPTIONS := hardening=+all export DEB_CFLAGS_MAINT_APPEND := $(shell dpkg-buildflags --get CPPFLAGS) export DEB_CXXFLAGS_MAINT_APPEND := $(shell dpkg-buildflags --get CPPFLAGS) export DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed Cheers. -- Manuel