lnav/.github/actions/muslbuilder/entrypoint.sh

25 lines
578 B
Bash
Raw Normal View History

2023-06-12 04:32:01 +00:00
#!/bin/sh
2023-06-12 04:25:24 +00:00
2023-06-12 04:29:34 +00:00
set -Eeuxo pipefail
2023-06-12 04:40:27 +00:00
if [ -z ${GITHUB_WORKSPACE:-} ]; then
git clone https://github.com/tstack/lnav.git
cd lnav
else
cd ${GITHUB_WORKSPACE}
fi
2023-06-12 05:53:09 +00:00
./autogen.sh
2023-06-12 05:22:01 +00:00
mkdir lbuild
cd lbuild
../configure \
--with-libarchive=/fake.root \
CFLAGS='-static -g1 -gz=zlib -no-pie -O2' \
CXXFLAGS='-static -g1 -gz=zlib -U__unused -no-pie -O2' \
LDFLAGS="-L/fake.root/lib" \
CPPFLAGS="-I/fake.root/include" \
2023-06-15 15:40:38 +00:00
LIBS="-L/fake.root/lib -lexecinfo -lssh2 -llzma -lssl -lcrypto -lz -llz4" \
2023-06-12 05:22:01 +00:00
--enable-static \
PATH="/fake.root/bin:${PATH}"
2023-06-12 15:30:49 +00:00
make -j2