]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix the configure check whether the compiler supports compressed debug sections.
authorIvo Raisr <ivosh@ivosh.net>
Sun, 16 Jul 2017 20:12:26 +0000 (20:12 +0000)
committerIvo Raisr <ivosh@ivosh.net>
Sun, 16 Jul 2017 20:12:26 +0000 (20:12 +0000)
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

NEWS
configure.ac

diff --git a/NEWS b/NEWS
index 01eab4cfe19fa9503947ea0891fed2e9d2f9df17..1c33d6581d9e36aa8e83d49d36fed4fbe91f040f 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -42,6 +42,7 @@ where XXXXXX is the bug number as listed below.
 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)
index 39e68217de34d8a8a86f48db58a6f36475a55011..b1ca652eaaccf7472b96267acfed961a5def0b4a 100644 (file)
@@ -2110,7 +2110,7 @@ AC_MSG_CHECKING([if gcc accepts -g -gz=zlib])
 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
@@ -2130,7 +2130,7 @@ AC_MSG_CHECKING([if gcc accepts -g -gz=zlib-gnu])
 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