Merge pull request #5429 from cpuguy83/fix_libseccomp_cc

Specify seccomp target arch for CC
This commit is contained in:
Derek McGowan
2021-04-28 12:00:04 -07:00
committed by GitHub
2 changed files with 7 additions and 2 deletions

View File

@@ -27,7 +27,11 @@ export SECCOMP_PATH=$(mktemp -d)
curl -fsSL "https://github.com/seccomp/libseccomp/releases/download/v${SECCOMP_VERSION}/libseccomp-${SECCOMP_VERSION}.tar.gz" | tar -xzC "$SECCOMP_PATH" --strip-components=1
(
cd "$SECCOMP_PATH"
./configure --prefix=/usr/local
host=""
if [ -v SECCOMP_ARCH ]; then
host="--host=${SECCOMP_ARCH}"
fi
./configure --prefix=/usr/local ${host}
make
make install
ldconfig