1 When checking if the compiler supports compressed debug sections we need to
2 actually link instead of just compile. Otherwise the compiler thinks that
3 they are supported, but gold does not support -gz=zlib.
5 Upstream-Status: Backport (r16459)
6 Signed-off-by: Ross Burton <ross.burton@intel.com>
8 --- a/configure.ac~ 2017-07-11 11:53:16.000000000 +0100
9 +++ b/configure.ac 2017-07-11 18:16:13.674130483 +0100
14 -AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ ]], [[
15 +AC_LINK_IFELSE([AC_LANG_PROGRAM([[ ]], [[
21 CFLAGS="-g -gz=zlib-gnu"
23 -AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ ]], [[
24 +AC_LINK_IFELSE([AC_LANG_PROGRAM([[ ]], [[
27 ac_have_gz_zlib_gnu=yes