projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a18c82
)
Reset LDFLAGS before testing for strtok_r
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Tue, 19 Jun 2018 15:15:19 +0000
(17:15 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Tue, 19 Jun 2018 15:15:19 +0000
(17:15 +0200)
They may contain all kinds of things that make the test fail.
See #2823 for details
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index
eab3432
..
7a14e01
100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-767,6
+767,8
@@
AC_FUNC_STRERROR_R
SAVE_CFLAGS="$CFLAGS"
CFLAGS="-Wall -Werror"
+SAVE_LDFAGS="$LDFLAGS"
+LDFLAGS=""
AC_CACHE_CHECK([for strtok_r],
[c_cv_have_strtok_r_default],
@@
-839,6
+841,7
@@
if test "x$c_cv_have_strtok_r_default" = "xno"; then
fi
CFLAGS="$SAVE_CFLAGS"
+LDFLAGS="$SAVE_LDFLAGS"
if test "x$c_cv_have_strtok_r_reentrant" = "xyes"; then
CFLAGS="$CFLAGS -D_REENTRANT=1"
fi