From 71ddf7234e4a0a748541d3157e24d54cfe09c655 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Sun, 27 Dec 2020 19:11:54 +0300 Subject: bearssl: define variables --- core/bearssl/build | 16 +++++++--------- 1 file 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" -- cgit v1.2.3