X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=configure.ac;h=7a14e01bcf4c4573513083da564938f26bb29b80;hb=74ee9a04ef5785b31d1acbfdcbcece3370668cfe;hp=eab3432253098a1f40b8e6ba2210ac9d4aeff9f3;hpb=258e6aee6f33a7b5a6d21ccdca2ee50888e0ac45;p=collectd.git diff --git a/configure.ac b/configure.ac index eab34322..7a14e01b 100644 --- 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