We need to actually link instead of just compile.
Fixes BZ#382256.
Patch by: Ross Burton <ross@burtonini.com>
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16459
381274 powerpc too chatty even with --sigill-diagnostics=no
381769 Use ucontext_t instead of struct ucontext
381805 arm32 needs ld.so index hardwire for new glibc security fixes
+382256 gz compiler flag test doesn't work for gold
Release 3.13.0 (15 June 2017)
safe_CFLAGS=$CFLAGS
CFLAGS="-g -gz=zlib"
-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ ]], [[
+AC_LINK_IFELSE([AC_LANG_PROGRAM([[ ]], [[
return 0;
]])], [
ac_have_gz_zlib=yes
safe_CFLAGS=$CFLAGS
CFLAGS="-g -gz=zlib-gnu"
-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ ]], [[
+AC_LINK_IFELSE([AC_LANG_PROGRAM([[ ]], [[
return 0;
]])], [
ac_have_gz_zlib_gnu=yes