mirror of
https://github.com/ianlancetaylor/libbacktrace.git
synced 2026-03-26 03:59:06 +08:00
libbacktrace: test --compress-debug-sections=ARG for each ARG
This should fix a testsuite problem with Solaris ld that supports zlib but not zlib-gabi. * configure.ac: Test --compress-debug-sections=zlib-gnu and --compress-debug-sections=zlib-gabi separately, setting new automake conditionals. * Makefile.am (ctestg, ctestg_alloc): Only build if HAVE_COMPRESSED_DEBUG_ZLIB_GNU. (ctesta, ctesta_alloc): Only build if HAVE_COMPRESSED_DEBUG_ZLIB_GABI. (ctestzstd_alloc): New test if HAVE_COMPRESSED_DEBUG_ZSTD. * configure, Makefile.in: Regenerate.
This commit is contained in:
80
configure
vendored
80
configure
vendored
@@ -655,8 +655,10 @@ HAVE_COMPRESSED_DEBUG_ZSTD_FALSE
|
||||
HAVE_COMPRESSED_DEBUG_ZSTD_TRUE
|
||||
HAVE_ZSTD_FALSE
|
||||
HAVE_ZSTD_TRUE
|
||||
HAVE_COMPRESSED_DEBUG_FALSE
|
||||
HAVE_COMPRESSED_DEBUG_TRUE
|
||||
HAVE_COMPRESSED_DEBUG_ZLIB_GABI_FALSE
|
||||
HAVE_COMPRESSED_DEBUG_ZLIB_GABI_TRUE
|
||||
HAVE_COMPRESSED_DEBUG_ZLIB_GNU_FALSE
|
||||
HAVE_COMPRESSED_DEBUG_ZLIB_GNU_TRUE
|
||||
HAVE_BUILDID_FALSE
|
||||
HAVE_BUILDID_TRUE
|
||||
HAVE_ZLIB_FALSE
|
||||
@@ -11278,7 +11280,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<_LT_EOF
|
||||
#line 11281 "configure"
|
||||
#line 11283 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
@@ -11384,7 +11386,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<_LT_EOF
|
||||
#line 11387 "configure"
|
||||
#line 11389 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
@@ -12840,9 +12842,9 @@ else
|
||||
fi
|
||||
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --compress-debug-sections is supported" >&5
|
||||
$as_echo_n "checking whether --compress-debug-sections is supported... " >&6; }
|
||||
if ${libgo_cv_ld_compress+:} false; then :
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --compress-debug-sections=zlib-gnu is supported" >&5
|
||||
$as_echo_n "checking whether --compress-debug-sections=zlib-gnu is supported... " >&6; }
|
||||
if ${libgo_cv_ld_compress_zlib_gnu+:} false; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
LDFLAGS_hold=$LDFLAGS
|
||||
@@ -12859,22 +12861,60 @@ main ()
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_link "$LINENO"; then :
|
||||
libgo_cv_ld_compress=yes
|
||||
libgo_cv_ld_compress_zlib_gnu=yes
|
||||
else
|
||||
libgo_cv_ld_compress=no
|
||||
libgo_cv_ld_compress_zlib_gnu=no
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
LDFLAGS=$LDFLAGS_hold
|
||||
fi
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_compress" >&5
|
||||
$as_echo "$libgo_cv_ld_compress" >&6; }
|
||||
if test "$libgo_cv_ld_compress" = yes; then
|
||||
HAVE_COMPRESSED_DEBUG_TRUE=
|
||||
HAVE_COMPRESSED_DEBUG_FALSE='#'
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_compress_zlib_gnu" >&5
|
||||
$as_echo "$libgo_cv_ld_compress_zlib_gnu" >&6; }
|
||||
if test "$libgo_cv_ld_compress_zlib_gnu" = yes; then
|
||||
HAVE_COMPRESSED_DEBUG_ZLIB_GNU_TRUE=
|
||||
HAVE_COMPRESSED_DEBUG_ZLIB_GNU_FALSE='#'
|
||||
else
|
||||
HAVE_COMPRESSED_DEBUG_TRUE='#'
|
||||
HAVE_COMPRESSED_DEBUG_FALSE=
|
||||
HAVE_COMPRESSED_DEBUG_ZLIB_GNU_TRUE='#'
|
||||
HAVE_COMPRESSED_DEBUG_ZLIB_GNU_FALSE=
|
||||
fi
|
||||
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --compress-debug-sections=zlib-gabi is supported" >&5
|
||||
$as_echo_n "checking whether --compress-debug-sections=zlib-gabi is supported... " >&6; }
|
||||
if ${libgo_cv_ld_compress_zlib_gabi+:} false; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
LDFLAGS_hold=$LDFLAGS
|
||||
LDFLAGS="$LDFLAGS -Wl,--compress-debug-sections=zlib-gabi"
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_link "$LINENO"; then :
|
||||
libgo_cv_ld_compress_zlib_gabi=yes
|
||||
else
|
||||
libgo_cv_ld_compress_zlib_gabi=no
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
LDFLAGS=$LDFLAGS_hold
|
||||
fi
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_compress_zlib_gabi" >&5
|
||||
$as_echo "$libgo_cv_ld_compress_zlib_gabi" >&6; }
|
||||
if test "$libgo_cv_ld_compress_zlib_gabi" = yes; then
|
||||
HAVE_COMPRESSED_DEBUG_ZLIB_GABI_TRUE=
|
||||
HAVE_COMPRESSED_DEBUG_ZLIB_GABI_FALSE='#'
|
||||
else
|
||||
HAVE_COMPRESSED_DEBUG_ZLIB_GABI_TRUE='#'
|
||||
HAVE_COMPRESSED_DEBUG_ZLIB_GABI_FALSE=
|
||||
fi
|
||||
|
||||
|
||||
@@ -13513,8 +13553,12 @@ if test -z "${HAVE_BUILDID_TRUE}" && test -z "${HAVE_BUILDID_FALSE}"; then
|
||||
as_fn_error $? "conditional \"HAVE_BUILDID\" was never defined.
|
||||
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
||||
fi
|
||||
if test -z "${HAVE_COMPRESSED_DEBUG_TRUE}" && test -z "${HAVE_COMPRESSED_DEBUG_FALSE}"; then
|
||||
as_fn_error $? "conditional \"HAVE_COMPRESSED_DEBUG\" was never defined.
|
||||
if test -z "${HAVE_COMPRESSED_DEBUG_ZLIB_GNU_TRUE}" && test -z "${HAVE_COMPRESSED_DEBUG_ZLIB_GNU_FALSE}"; then
|
||||
as_fn_error $? "conditional \"HAVE_COMPRESSED_DEBUG_ZLIB_GNU\" was never defined.
|
||||
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
||||
fi
|
||||
if test -z "${HAVE_COMPRESSED_DEBUG_ZLIB_GABI_TRUE}" && test -z "${HAVE_COMPRESSED_DEBUG_ZLIB_GABI_FALSE}"; then
|
||||
as_fn_error $? "conditional \"HAVE_COMPRESSED_DEBUG_ZLIB_GABI\" was never defined.
|
||||
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
||||
fi
|
||||
if test -z "${HAVE_ZSTD_TRUE}" && test -z "${HAVE_ZSTD_FALSE}"; then
|
||||
|
||||
Reference in New Issue
Block a user