Answers to: lintian warning: hardening-no-relro, hardening-no-fortify-functions and dpkg-buildflagshttp://linuxexchange.org/questions/2917/lintian-warning-hardening-no-relro-hardening-no-fortify-functions-and-dpkg-buildflags<p>I'm using autotools to create package of my software then i wanted to make debian package but after runing debuild i get those warnings:</p> <pre><code>Now running lintian... W: minorin: hardening-no-relro usr/bin/minorin W: minorin: hardening-no-fortify-functions usr/bin/minorin </code></pre> <p>google pointed me to this:</p> <blockquote> This package provides an ELF binary that lacks the "read-only relocation" link flag. This package was likely not built with the default Debian compiler flags defined by dpkg-buildflags. If built using dpkg-buildflags directly, be sure to import LDFLAGS. </blockquote> <p>so do I have to just copy the output of dpkg-buildflags to my src/Makefile.am or is there a way to automatically include it... </p>enThu, 11 Apr 2013 14:54:12 -0400Answer by alexdantashttp://linuxexchange.org/questions/2917/lintian-warning-hardening-no-relro-hardening-no-fortify-functions-and-dpkg-buildflags/3090<p>That's a common error, as seen <a href="http://lintian.debian.org/tags/hardening-no-relro.html">here</a>.</p> <p>The Hardening problem's well explained <a href="http://wiki.debian.org/Hardening">here</a>, so simply place the following on your <code>debian/rules</code>.</p> <pre><code>export DEB_BUILD_MAINT_OPTIONS = hardening=+all DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk </code></pre>alexdantasThu, 11 Apr 2013 14:54:12 -0400http://linuxexchange.org/questions/2917/lintian-warning-hardening-no-relro-hardening-no-fortify-functions-and-dpkg-buildflags/3090