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
|
|
|
|
2023-06-12 04:29:34 +00:00
|
|
|
cd $GITHUB_WORKSPACE
|
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" \
|
|
|
|
LIBS="-L/fake.root/lib -lexecinfo -lssh2 -llzma -lssl -lcrypto -lz" \
|
|
|
|
--enable-static \
|
|
|
|
PATH="/fake.root/bin:${PATH}"
|
2023-06-12 15:30:49 +00:00
|
|
|
make -j2
|