diff -Nru dymo-cups-drivers-1.4.0/debian/changelog dymo-cups-drivers-1.4.0/debian/changelog --- dymo-cups-drivers-1.4.0/debian/changelog 2014-01-06 14:24:12.000000000 +0000 +++ dymo-cups-drivers-1.4.0/debian/changelog 2014-01-09 21:53:26.000000000 +0000 @@ -1,3 +1,9 @@ +dymo-cups-drivers (1.4.0-2) unstable; urgency=low + + * Add patch to inheritate CXXFLAGS from the environment + + -- Didier Raboud Thu, 09 Jan 2014 22:49:38 +0100 + dymo-cups-drivers (1.4.0-1) unstable; urgency=low * Initial release. (Closes: #640246) diff -Nru dymo-cups-drivers-1.4.0/debian/patches/inheritate_CXXFLAGS.patch dymo-cups-drivers-1.4.0/debian/patches/inheritate_CXXFLAGS.patch --- dymo-cups-drivers-1.4.0/debian/patches/inheritate_CXXFLAGS.patch 1970-01-01 00:00:00.000000000 +0000 +++ dymo-cups-drivers-1.4.0/debian/patches/inheritate_CXXFLAGS.patch 2014-01-09 21:53:26.000000000 +0000 @@ -0,0 +1,14 @@ +Description: Inheritate CXXFLAGS from the environment, to use dpkg-buildflags' +Author: Didier Raboud +Last-Update: 2014-01-09 +--- a/configure.ac ++++ b/configure.ac +@@ -89,7 +89,7 @@ + warning_flags="-Wall -Wno-unknown-pragmas" + debug_flags="" + optimization_flags="-O2" +-CXXFLAGS="${optimization_flags} ${warning_flags} ${debug_flags} ${cups_cflags}" ++CXXFLAGS+=" ${optimization_flags} ${warning_flags} ${debug_flags} ${cups_cflags}" + + + AC_CHECK_LIB(cups, cupsMarkOptions, , AC_ERROR([Can't find cups library])) diff -Nru dymo-cups-drivers-1.4.0/debian/patches/series dymo-cups-drivers-1.4.0/debian/patches/series --- dymo-cups-drivers-1.4.0/debian/patches/series 2014-01-06 09:55:18.000000000 +0000 +++ dymo-cups-drivers-1.4.0/debian/patches/series 2014-01-09 21:53:26.000000000 +0000 @@ -1,2 +1,3 @@ +inheritate_CXXFLAGS.patch port_tests_to_newer_cups_headers.patch dont_fail_on_uninstalled_filter_ppdtest.patch