fix zstd in static build (#16349)
Ilya Mashchenko committed
Nov 7, 2023 at 10:49 UTC
09e51028184a206a2aaa25a7db0ede85cd6e5fcd
2 files changed
+2
-2
configure.ac
+1
-1
@@ -568,7 +568,7 @@ AC_CHECK_LIB(
568
# -----------------------------------------------------------------------------
569
# zstd
570
571
-AC_CHECK_LIB([zstd], [ZSTD_createCStream, ZSTD_compressStream, ZSTD_decompressStream, ZSTD_createDStream],
571
+AC_CHECK_LIB([zstd], [ZSTD_createCStream, ZSTD_createDStream],
572
[LIBZSTD_FOUND=yes],
573
[LIBZSTD_FOUND=no])
574
packaging/makeself/jobs/70-netdata-git.install.sh
+1
-1
@@ -12,7 +12,7 @@ else
12
export CFLAGS="-static -O1 -pipe -ggdb -Wall -Wextra -Wformat-signedness -DNETDATA_INTERNAL_CHECKS=1 -I/openssl-static/include -I/libnetfilter-acct-static/include/libnetfilter_acct -I/usr/include/libmnl"
13
fi
14
15
-export LDFLAGS="-Wl,--gc-sections -static -L/openssl-static/lib64 -L/libnetfilter-acct-static/lib -lnetfilter_acct -L/usr/lib -lmnl"
15
+export LDFLAGS="-Wl,--gc-sections -static -L/openssl-static/lib64 -L/libnetfilter-acct-static/lib -lnetfilter_acct -L/usr/lib -lmnl -L/usr/lib -lzstd"
16
17
# We export this to 'yes', installer sets this to .environment.
18
# The updater consumes this one, so that it can tell whether it should update a static install or a non-static one