commit: 4febcfd5377eea46d3e5dac39c082bd62af88640
parent 58979993bf7d17a5544b43837386cac5bc0d187a
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Fri, 24 May 2024 02:25:17 +0200
bootstrap-bearssl.sh: switch to (g)make
Diffstat:
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/bootstrap-bearssl.sh b/bootstrap-bearssl.sh
@@ -1,12 +1,21 @@
#!/bin/sh
set -ex
+die() {
+ echo "die: $@"
+ exit 1
+}
+
tar xof /bearssl-*.tar.gz
cd bearssl-*/
+# pdpmake: (mk/Rules.mk:315): invalid target name 'build/libbearssl.a': allow with pragma target_name
+# Works with gmake and bmake
+command -v make || die "Run /bootstrap-make.sh"
+
# Maybe consider setting the soname to libbearssl.so.${pkgver%%.*} as done in aports
-bmake CC=$CC LD=$CC LDDLL=$CC
+make CC=$CC LD=$CC LDDLL=$CC
install build/brssl /usr/bin/
install -m 644 build/libbearssl.a build/libbearssl.so /usr/lib/
install -m 644 inc/* /usr/include/