diff options
author | Cem Keylan <cem@ckyln.com> | 2020-12-27 19:11:54 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-12-27 19:11:54 +0300 |
commit | 71ddf7234e4a0a748541d3157e24d54cfe09c655 (patch) | |
tree | f8a2760ff715c38c1a14e42f91205f29674db03e | |
parent | a838ef960f1bbd0b82b05ad23118a03f69316a26 (diff) | |
download | repository-71ddf7234e4a0a748541d3157e24d54cfe09c655.tar.gz |
bearssl: define variables
-rwxr-xr-x | core/bearssl/build | 16 |
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" |