libbacktrace: don't run --build-id tests if it is not supported

PR libbacktrace/108297
	* configure.ac: Test whether linker supports --build-id.
	* Makefile.am: Only run --build-id tests if supported.
	* configure, Makefile.in: Regenerate.
This commit is contained in:
Ian Lance Taylor
2023-01-06 09:46:08 -08:00
parent da7eff2f37
commit ad106d5fdd
4 changed files with 78 additions and 21 deletions

View File

@@ -249,6 +249,7 @@ check_DATA += allocfail.dSYM
endif USE_DSYMUTIL
if HAVE_ELF
if HAVE_BUILDID
if HAVE_OBJCOPY_DEBUGLINK
b2test_SOURCES = $(btest_SOURCES)
@@ -272,6 +273,7 @@ MAKETESTS += b3test_dwz_buildid
endif HAVE_DWZ
endif HAVE_OBJCOPY_DEBUGLINK
endif HAVE_BUILDID
endif HAVE_ELF
btest_SOURCES = btest.c testlib.c