blob: 19d07b72a77d1d1ddf963b36879c73b1b4a3eaaf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
# Cross-compile the static aarch64 backend binaries (bokfd, bokfctl).
# Expects the source read-only at /src, writes the binaries to /out and takes
# the version from $VERSION. Run through deploy/Dockerfile.cross. OpenSSL and
# glibc are linked statically, so the Alpine runtime image needs no shared
# libraries (the kernel ABI is all that matters).
set -eu
make -C /src -j"$(nproc)" BUILD=/tmp/build backend \
CC=aarch64-linux-gnu-gcc \
CFLAGS="-O2 -g -static -L/usr/lib/aarch64-linux-gnu" \
SSL_LIBS="-l:libssl.a -l:libcrypto.a -ldl -lpthread" \
VERSION="${VERSION:-0.1.0-dev}"
mkdir -p /out
cp /tmp/build/bokfd /tmp/build/bokfctl /out/
|