aboutsummaryrefslogtreecommitdiff
path: root/core/bearssl
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-12-27 21:25:09 +0300
committerCem Keylan <cem@ckyln.com>2020-12-27 21:25:09 +0300
commitbf0a3ff84564c809bdee68b58afe852b6a4dd233 (patch)
treec4c7a17799be5a803bf54a147d92b0fe885d8664 /core/bearssl
parent8d9702f91e80063c9edd592ecf17bc22a4bb4a9e (diff)
downloadrepository-bf0a3ff84564c809bdee68b58afe852b6a4dd233.tar.gz
bearssl: fix cross build
Diffstat (limited to 'core/bearssl')
-rwxr-xr-xcore/bearssl/build2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/bearssl/build b/core/bearssl/build
index c0e5e7f2..9d84822d 100755
--- a/core/bearssl/build
+++ b/core/bearssl/build
@@ -9,6 +9,8 @@ kinstall() {
chmod "$1" "$3"
}
+[ "$CPT_CROSS_TRIPLET" ] && CC=$CPT_CROSS_TRIPLET-cc AR=$CPT_CROSS_TRIPLET
+
make "CC=${CC:=cc}" "AR=${AR:=ar}" LD=$CC
# Build static binary for bearssl, word splitting on CFLAGS is intentional.