title: How to override dpkg-buildflags CFLAGS?
body: <p>I got a package with:</p>
  
  <pre><code>$ apt-get source &lt;pkg-name&gt;
  </code></pre>
  
  <p>and now I am trying to build it with:</p>
  
  <pre><code>$ dpkg-buildpackage -uc -us -j8
  </code></pre>
  
  <p>At the beginning of the output, there is stated:</p>
  
  <pre><code>dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security
  dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): -D_FORTIFY_SOURCE=2
  dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security
  dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2
  dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): -Wl,-Bsymbolic-functions -Wl,-z,relro
  </code></pre>
  
  <p>I would like to override these CFLAGS (also, the LDFLAGS). I have tried exporting the CFLAGS envvar, the same way we do with plain configure, at no avail. How can I override these values?</p>