From c72c7a36ebf9383a74af60e3be23374f10791771 Mon Sep 17 00:00:00 2001
From: Cem Keylan <cem@ckyln.com>
Date: Sun, 27 Dec 2020 21:33:11 +0300
Subject: bearssl: fix cross compilation for the shared library

---
 core/bearssl/build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/bearssl/build b/core/bearssl/build
index 29ead982..2faf0498 100755
--- a/core/bearssl/build
+++ b/core/bearssl/build
@@ -11,7 +11,7 @@ kinstall() {
 
 [ "$CPT_CROSS_TRIPLET" ] && CC=$CPT_CROSS_TRIPLET-cc AR=$CPT_CROSS_TRIPLET-ar
 
-make "CC=${CC:=cc}" "AR=${AR:=ar}" LD=$CC
+make "CC=${CC:=cc}" "AR=${AR:=ar}" LD=$CC LDDLL=$CC
 
 # Build static binary for bearssl, word splitting on CFLAGS is intentional.
 # shellcheck disable=2086
-- 
cgit v1.2.3