gnucash maint: Bug 747812 - unset LDFLAGS when unsetting CFLAGS
John Ralls
jralls at code.gnucash.org
Sat Apr 25 19:13:37 EDT 2015
Updated via https://github.com/Gnucash/gnucash/commit/e54af98b (commit)
from https://github.com/Gnucash/gnucash/commit/df1fc7d9 (commit)
commit e54af98b05d7872c3e34539a392ee93ce21f559f
Author: Bill Nottingham <notting at splat.cc>
Date: Sat Apr 25 16:11:23 2015 -0700
Bug 747812 - unset LDFLAGS when unsetting CFLAGS
Since some LDFLAGS settings depend on corresponding CFLAGS ones,
e.g. -fPIC, unsetting only CFLAGS will cause the test-compile to
fail because of the mismatched flags.
diff --git a/configure.ac b/configure.ac
index f6e9623..729e35e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -172,6 +172,8 @@ AC_HEADER_STDC
AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h sys/wait.h pow.h)
oldcflags="$CFLAGS"
CFLAGS=
+oldldflags="$LDFLAGS"
+LDFLAGS=
AC_CHECK_FUNCS(stpcpy memcpy timegm towupper)
AC_CHECK_FUNCS(setenv,,[
AC_CHECK_FUNCS(putenv,,[
@@ -179,6 +181,7 @@ AC_CHECK_FUNCS(setenv,,[
])
])
CFLAGS="$oldcflags"
+LDFLAGS="$oldldflags"
STRUCT_TM_GMTOFF_CHECK
cflags_save=${CFLAGS}
CFLAGS="${CFLAGS} -Wall -Werror"
Summary of changes:
configure.ac | 3 +++
1 file changed, 3 insertions(+)
More information about the gnucash-changes
mailing list