aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rwxr-xr-xcore/bearssl/build16
1 files changed, 7 insertions, 9 deletions
diff --git a/core/bearssl/build b/core/bearssl/build
index 21bbd789..c0e5e7f2 100755
--- a/core/bearssl/build
+++ b/core/bearssl/build
@@ -9,18 +9,16 @@ kinstall() {
chmod "$1" "$3"
}
-make
+make "CC=${CC:=cc}" "AR=${AR:=ar}" LD=$CC
# Build static binary for bearssl, word splitting on CFLAGS is intentional.
# shellcheck disable=2086
-"${CC:-cc}" \
- -static $CFLAGS \
- -I ./inc \
- -include tools/brssl.h \
- tools/*.c \
- build/libbearssl.a \
- -o brssl
-
+"$CC" -static $CFLAGS \
+ -I ./inc \
+ -include tools/brssl.h \
+ tools/*.c \
+ build/libbearssl.a \
+ -o brssl
kinstall 755 brssl "$1/usr/bin/brssl"
kinstall 644 build/libbearssl.a "$1/usr/lib/libbearssl.a"