woj-sandbox/build_libseccomp.sh

14 lines
355 B
Bash
Raw Normal View History

2022-10-20 15:44:03 +08:00
#!/usr/bin/env bash
2023-12-27 23:03:46 +08:00
VERSION=v2.5.5
2022-10-02 14:09:25 +08:00
if [ -d ./libseccomp ]; then exit 0; fi
set -x
2022-10-20 15:44:03 +08:00
git clone https://github.com/seccomp/libseccomp.git >/dev/null 2>&1 || exit 1
2022-10-02 14:09:25 +08:00
cd libseccomp || exit 1
2022-10-20 15:44:03 +08:00
git checkout $VERSION >/dev/null 2>&1
./autogen.sh >/dev/null 2>&1 || exit 1
./configure --enable-shared=no >/dev/null 2>&1 || exit 1
make -j >/dev/null 2>&1 || exit 1