Discussion:
[Valgrind-developers] Valgrind: r16459 - in /trunk: NEWS configure.ac
s***@valgrind.org
2017-07-16 20:12:27 UTC
Permalink
Author: iraisr
Date: Sun Jul 16 21:12:26 2017
New Revision: 16459

Log:
Fix the configure check whether the compiler supports compressed debug sections.
We need to actually link instead of just compile.
Fixes BZ#382256.

Patch by: Ross Burton <***@burtonini.com>


Modified:
trunk/NEWS
trunk/configure.ac

Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS (original)
+++ trunk/NEWS Sun Jul 16 21:12:26 2017
@@ -42,6 +42,7 @@
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)

Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Sun Jul 16 21:12:26 2017
@@ -2110,7 +2110,7 @@
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 @@
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

Loading...