tags 777783 + patch
thanks

You can add -std=gnu89 to CFLAGS to tell GCC 5 to use GNU89 inline
style.

Note that I had to change debian/rules slightly: previously, all your
DEB_* variables were ignored because they were not passed to
dpkg-buildflags (see #664508 for another package with such an issue).

Long term, it would be good to move to C99 inline, see
https://gcc.gnu.org/gcc-5/porting_to.html but it seems there's no
active atftp upstream.


diff -urN atftp-0.7.git20120829~/debian/rules atftp-0.7.git20120829/debian/rules
--- atftp-0.7.git20120829~/debian/rules 2015-06-24 22:53:07.669183524 +0000
+++ atftp-0.7.git20120829/debian/rules  2015-06-24 22:53:12.633183627 +0000
@@ -12,10 +12,8 @@
 # This has to be exported to make some magic below work.
 export DH_OPTIONS
 
-export DEB_BUILD_MAINT_OPTIONS = hardening=+all
-export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
-export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
-  
+dpkg_buildflags = DEB_BUILD_MAINT_OPTIONS="hardening=+all" 
DEB_CFLAGS_MAINT_APPEND="-Wall -pedantic -std=gnu89" 
DEB_LDFLAGS_MAINT_APPEND="-Wl,--as-needed" dpkg-buildflags
+
 configure: configure-stamp
 
 configure-stamp:
@@ -23,7 +21,7 @@
        # Add here commands to configure the package.
        ./autogen.sh
        #./configure --prefix=/usr --mandir=/usr/share/man
-       dh_auto_configure -- $(shell dpkg-buildflags --export=configure)
+       dh_auto_configure -- $(shell $(dpkg_buildflags) --export=configure)
 
        touch configure-stamp
 

-- 
Martin Michlmayr
Linux for HP Helion OpenStack, Hewlett-Packard


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to