aboutsummaryrefslogtreecommitdiff
path: root/core/bearssl/build
diff options
context:
space:
mode:
Diffstat (limited to 'core/bearssl/build')
-rwxr-xr-xcore/bearssl/build4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/bearssl/build b/core/bearssl/build
index c0e5e7f2..2faf0498 100755
--- a/core/bearssl/build
+++ b/core/bearssl/build
@@ -9,7 +9,9 @@ kinstall() {
chmod "$1" "$3"
}
-make "CC=${CC:=cc}" "AR=${AR:=ar}" LD=$CC
+[ "$CPT_CROSS_TRIPLET" ] && CC=$CPT_CROSS_TRIPLET-cc AR=$CPT_CROSS_TRIPLET-ar
+
+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