1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
Description: Reorder configure.ac to honour hardening flags set externally
Author: Simon Ruderich <simon@ruderich.org>
Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=656004#15
Forwarded: no
Bug-Debian: https://bugs.debian.org/656004
Index: netrik/configure.ac
===================================================================
--- netrik.orig/configure.ac 2015-11-30 23:39:04.994974283 +0100
+++ netrik/configure.ac 2015-11-30 23:39:47.499841217 +0100
@@ -1,8 +1,9 @@
-dnl preserve initial CFLAGS
-CFLAGS_OLD="$CFLAGS"
-
dnl initialize
AC_INIT(main.c)
+
+dnl preserve initial CFLAGS - must come after AC_INIT or it isn't run!
+CFLAGS_OLD="$CFLAGS"
+
VER=`head -1 $srcdir/README |sed 's/ *netrik \([[^ ]]*\).*/\1/'`
AM_INIT_AUTOMAKE(netrik, $VER)
|