aboutsummaryrefslogtreecommitdiff
path: root/libctf/configure.ac
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2022-09-26 20:41:42 -0700
committerFangrui Song <i@maskray.me>2022-09-26 20:41:42 -0700
commit8818c80cbd4116ef5af171ec47c61167179e225c (patch)
tree595d6f4831b1df215d081a63dd8bdaffc0a9d042 /libctf/configure.ac
parent2cac01e3ffff74898c54fa5e6418817f5578adb6 (diff)
downloadgdb-8818c80cbd4116ef5af171ec47c61167179e225c.zip
gdb-8818c80cbd4116ef5af171ec47c61167179e225c.tar.gz
gdb-8818c80cbd4116ef5af171ec47c61167179e225c.tar.bz2
libctf: Add ZSTD_LIBS to LIBS so that ac_cv_libctf_bfd_elf can be true
Diffstat (limited to 'libctf/configure.ac')
-rw-r--r--libctf/configure.ac3
1 files changed, 2 insertions, 1 deletions
diff --git a/libctf/configure.ac b/libctf/configure.ac
index 4996edd..2e2ccf4 100644
--- a/libctf/configure.ac
+++ b/libctf/configure.ac
@@ -71,6 +71,7 @@ AC_FUNC_MMAP
# Needed for BFD capability checks.
AC_SEARCH_LIBS(dlsym, dl)
AM_ZLIB
+AC_ZSTD
GCC_ENABLE([libctf-hash-debugging], [no], [], [Enable expensive debugging of CTF deduplication type hashing])
if test "${enable_libctf_hash_debugging}" = yes; then
@@ -89,7 +90,7 @@ CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
-LIBS="-lbfd -liberty -lz $intl $LIBS"
+LIBS="-lbfd -liberty -lz $ZSTD_LIBS $intl $LIBS"
AC_CACHE_CHECK([for ELF support in BFD], ac_cv_libctf_bfd_elf,
[AC_TRY_LINK([#include <stdlib.h>
#include <string.h>