diff mbox series

[v3,3/3] package/zstd: Prefer dynamically linked tool

Message ID 20210617091456.272611-3-nolange79@gmail.com
State Superseded
Headers show
Series [v3,1/3] package/zstd: rework build and install | expand

Commit Message

Norbert Lange June 17, 2021, 9:14 a.m. UTC
If the libzstd DSO is available, then link the
tool against it.

Signed-off-by: Norbert Lange <nolange79@gmail.com>
*   Drop config options, just use zstd-dll if possible
 package/zstd/zstd.mk | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series


diff --git a/package/zstd/zstd.mk b/package/zstd/zstd.mk
index 54ce4133fe..726c6ae4a4 100644
--- a/package/zstd/zstd.mk
+++ b/package/zstd/zstd.mk
@@ -45,7 +45,12 @@  endif
 # zstd will append -O3 after $(CFLAGS), use MOREFLAGS to override again
+# prefer zstd-dll unless no library is available
+ifeq ($(BR2_STATIC_LIBS),y)
 ZSTD_BUILD_PROG_TARGET = zstd-release
 # Since v1.5.0 the dynamic library is built for
 # multithreading, while the static library is not.