aboutsummaryrefslogtreecommitdiff
path: root/core/bearssl/build
diff options
context:
space:
mode:
Diffstat (limited to 'core/bearssl/build')
-rwxr-xr-xcore/bearssl/build27
1 files changed, 0 insertions, 27 deletions
diff --git a/core/bearssl/build b/core/bearssl/build
deleted file mode 100755
index c0e5e7f2..00000000
--- a/core/bearssl/build
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/sh -e
-
-for patch in *.patch; do
- patch -p1 < "$patch"
-done
-
-kinstall() {
- mkdir -p "${3%/*}"; cp "$2" "$3"
- chmod "$1" "$3"
-}
-
-make "CC=${CC:=cc}" "AR=${AR:=ar}" LD=$CC
-
-# Build static binary for bearssl, word splitting on CFLAGS is intentional.
-# shellcheck disable=2086
-"$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"
-kinstall 755 build/libbearssl.so "$1/usr/lib/libbearssl.so"
-
-mv inc "$1/usr/include"