aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-12-27 19:11:54 +0300
committerCem Keylan <cem@ckyln.com>2020-12-27 19:11:54 +0300
commit71ddf7234e4a0a748541d3157e24d54cfe09c655 (patch)
treef8a2760ff715c38c1a14e42f91205f29674db03e /core
parenta838ef960f1bbd0b82b05ad23118a03f69316a26 (diff)
downloadrepository-71ddf7234e4a0a748541d3157e24d54cfe09c655.tar.gz
bearssl: define variables
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"