From: Ivo Raisr Date: Sun, 16 Jul 2017 20:12:26 +0000 (+0000) Subject: Fix the configure check whether the compiler supports compressed debug sections. X-Git-Tag: VALGRIND_3_14_0~312 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67a6cef2929635229b6c0e1b86135147d36f1ca2;p=thirdparty%2Fvalgrind.git 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 git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16459 --- diff --git a/NEWS b/NEWS index 01eab4cfe1..1c33d6581d 100644 --- 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) diff --git a/configure.ac b/configure.ac index 39e68217de..b1ca652eaa 100644 --- a/configure.ac +++ b/configure.ac @@ -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