blob: 9b500711682946bd1117faed5cc4dfb482d5c200 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001From 8efe417aa9de654425cc01d0fc93be355a3f648d Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3Date: Wed, 13 Oct 2021 11:04:45 +0200
4Subject: [PATCH] tools: fix mkimage static compilation
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
10---
11 tools/Makefile | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14--- a/tools/Makefile
15+++ b/tools/Makefile
16@@ -157,7 +157,7 @@ ifneq ($(CONFIG_MX23)$(CONFIG_MX28)$(CON
17 HOSTCFLAGS_kwbimage.o += \
18 $(shell pkg-config --cflags libssl libcrypto 2> /dev/null || echo "")
19 HOSTLOADLIBES_mkimage += \
20- $(shell pkg-config --libs libssl libcrypto 2> /dev/null || echo "-lssl -lcrypto")
21+ $(shell pkg-config --libs --static libssl libcrypto 2> /dev/null || echo "-lssl -lcrypto -lpthread")
22
23 # OS X deprecate openssl in favour of CommonCrypto, supress deprecation
24 # warnings on those systems