Specify seccomp target arch for CC
seccomp's build scripts require setting the target arch that will be built when cross compiling. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user