title: Building a trivial program with dpkg-buildflags
body: <p>I'm trying to build a very simple C program for inclusion into a .deb package. The bulk of the project is in Python. When this program is included into a .deb package, <code>lintian</code> gives me the <code>hardening-no-fortify-functions</code> warning. </p>
  
  <p>On further reading, it appears that Debian expects you to include certain flags while building C programs, and that these flags can be retrieved using <code>dpkg-buildflags --get CFLAGS</code>.</p>
  
  <p>My initial build flags looked like this:</p>
  
  <pre><code>gcc -Wall -pedantic -o somefile somefile.c
  </code></pre>
  
  <p>Now, I'm building with</p>
  
  <pre><code>CFLAGS=`dpkg-buildflags --get CFLAGS`
  gcc $CFLAGS -o somefile somefile.c
  </code></pre>
  
  <p>However, I continue to get the <code>hardening-no-fortify-functions</code> warning. What am I doing wrong here? Is this now a false positive? Can I just add an override and forget about it?</p>