]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Pull the values for LFS_{CFLAGS,LDFLAGS,LIBS} from autoconf instead using them direct...
authorOndřej Surý <ondrej@sury.org>
Wed, 29 May 2019 09:19:34 +0000 (11:19 +0200)
committerOndřej Surý <ondrej@sury.org>
Wed, 29 May 2019 11:34:22 +0000 (13:34 +0200)
(cherry picked from commit d4596baed48b983c881c64edc65b6fe5336f1d24)

configure
configure.ac
lib/dns/Makefile.in
make/rules.in

index 12d042558fdaf7ef4fce2b7138744d5344692614..080f37da25df59aeabb1c6fd059d1ca1a32eb357 100755 (executable)
--- a/configure
+++ b/configure
@@ -943,6 +943,9 @@ LDFLAGS
 CFLAGS
 CC
 LIBTOOL
+LFS_LIBS
+LFS_LDFLAGS
+LFS_CFLAGS
 SET_MAKE
 host_os
 host_vendor
@@ -3017,6 +3020,14 @@ sunos*)
     ;;
 esac
 
+LFS_CFLAGS=`getconf LFS_CFLAGS 2>/dev/null`
+LFS_LDFLAGS=`getconf LFS_LDFLAGS 2>/dev/null`
+LFS_LIBS=`getconf LFS_LIBS 2>/dev/null`
+
+
+
+
+
 case `pwd` in
   *\ * | *\    *)
     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
index d290c4b0b01a81076d97acf556b5ed14cd7fa90d..18cfed24c170aeb2c108ebbd80c256fb1a05392c 100644 (file)
@@ -34,6 +34,14 @@ sunos*)
     ;;
 esac
 
+LFS_CFLAGS=`getconf LFS_CFLAGS 2>/dev/null`
+LFS_LDFLAGS=`getconf LFS_LDFLAGS 2>/dev/null`
+LFS_LIBS=`getconf LFS_LIBS 2>/dev/null`
+
+AC_SUBST([LFS_CFLAGS])
+AC_SUBST([LFS_LDFLAGS])
+AC_SUBST([LFS_LIBS])
+
 AC_PROG_LIBTOOL
 AC_PROG_INSTALL
 AC_PROG_LN_S
index 769d7ff87b1e5d4a9d26f3ad65beca8aa626d6dd..f6868d15879960ec51b4f668656ddeff822c90f4 100644 (file)
@@ -179,9 +179,6 @@ include/dns/rdatastruct.h: gen \
 code.h:        gen
        ./gen -s ${srcdir} > code.h || { rm -f $@ ; exit 1; }
 
-gen: LFS_CFLAGS  = `getconf LFS_CFLAGS 2>/dev/null`
-gen: LFS_LDFLAGS = `getconf LFS_LDFLAGS 2>/dev/null`
-gen: LFS_LIBS    = `getconf LFS_LIBS 2>/dev/null`
 gen: gen.c
        ${BUILD_CC} ${BUILD_CFLAGS} -I${top_srcdir}/lib/isc/include \
        ${LFS_CFLAGS} ${LFS_LDFLAGS} \
index 5cc4a4e67d39b09b1aa3c95a336cafcbc59d1084..3bb1928d33b6f725fdb6bf4825fa0372e8e5aae1 100644 (file)
@@ -114,6 +114,10 @@ BUILD_CPPFLAGS = @BUILD_CPPFLAGS@
 BUILD_LDFLAGS = @BUILD_LDFLAGS@
 BUILD_LIBS = @BUILD_LIBS@
 
+LFS_CFLAGS = @LFS_CFLAGS@
+LFS_LDFLAGS = @LFS_LDFLAGS@
+LFS_LIBS = @LFS_LIBS@
+
 .SUFFIXES:
 .SUFFIXES: .c .@O@