blob: eb0b05e4c63aa2e2d302adc37d72bd589ac4cb15 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001OpenWrt links the libressl statically against mkimage, make sure all the
2needed dependencies are added too.
3
4--- a/tools/Makefile
5+++ b/tools/Makefile
6@@ -158,7 +158,7 @@ ifneq ($(CONFIG_MX23)$(CONFIG_MX28)$(CON
7 HOSTCFLAGS_kwbimage.o += \
8 $(shell pkg-config --cflags libssl libcrypto 2> /dev/null || echo "")
9 HOSTLDLIBS_mkimage += \
10- $(shell pkg-config --libs libssl libcrypto 2> /dev/null || echo "-lssl -lcrypto")
11+ $(shell pkg-config --libs --static libssl libcrypto 2> /dev/null || echo "-lssl -lpthread -lcrypto")
12
13 # OS X deprecate openssl in favour of CommonCrypto, supress deprecation
14 # warnings on those systems