b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | From 8efe417aa9de654425cc01d0fc93be355a3f648d Mon Sep 17 00:00:00 2001 |
| 2 | From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl> |
| 3 | Date: Wed, 13 Oct 2021 11:04:45 +0200 |
| 4 | Subject: [PATCH] tools: fix mkimage static compilation |
| 5 | MIME-Version: 1.0 |
| 6 | Content-Type: text/plain; charset=UTF-8 |
| 7 | Content-Transfer-Encoding: 8bit |
| 8 | |
| 9 | Signed-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 |