87b70ccea4ff1bd61c1f268d07eaac96c0c51bb0
[openwrt/openwrt.git] / package / boot / uboot-mxs / patches / 210-link-libcrypto-static.patch
1 OpenWrt links the libressl statically against mkimage, make sure all the
2 needed dependencies are added too.
3
4 --- a/tools/Makefile
5 +++ b/tools/Makefile
6 @@ -163,7 +163,7 @@ endif
7 # MXSImage needs LibSSL
8 ifneq ($(CONFIG_MX23)$(CONFIG_MX28)$(CONFIG_ARMADA_38X)$(CONFIG_ARMADA_39X)$(CONFIG_FIT_SIGNATURE),)
9 HOSTLOADLIBES_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