mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 21:26:49 +00:00
runc: build with seccomp
This commit is contained in:
parent
77192d1f37
commit
ded92d470e
@ -8,7 +8,7 @@ PKG_SHA256="4f02077432642eebd768fc857318ae7929290b3a3511eb1be338005e360cfa34"
|
||||
PKG_LICENSE="APL"
|
||||
PKG_SITE="https://github.com/opencontainers/runc"
|
||||
PKG_URL="https://github.com/opencontainers/runc/archive/v${PKG_VERSION}.tar.gz"
|
||||
PKG_DEPENDS_TARGET="toolchain go:host"
|
||||
PKG_DEPENDS_TARGET="toolchain go:host libseccomp"
|
||||
PKG_LONGDESC="A CLI tool for spawning and running containers according to the OCI specification."
|
||||
PKG_TOOLCHAIN="manual"
|
||||
|
||||
@ -19,6 +19,7 @@ pre_make_target() {
|
||||
go_configure
|
||||
|
||||
export LDFLAGS="-w -extldflags -static -X main.gitCommit=${PKG_GIT_COMMIT} -X main.version=$(cat ./VERSION) -extld ${CC}"
|
||||
export PKG_CONFIG_PATH="$(get_install_dir libseccomp)/usr/lib/pkgconfig:${PKG_CONFIG_PATH}"
|
||||
|
||||
mkdir -p ${GOPATH}
|
||||
if [ -d ${PKG_BUILD}/vendor ]; then
|
||||
@ -30,5 +31,5 @@ pre_make_target() {
|
||||
|
||||
make_target() {
|
||||
mkdir -p bin
|
||||
${GOLANG} build -v -o bin/runc -a -tags "cgo static_build" -ldflags "${LDFLAGS}" ./
|
||||
${GOLANG} build -v -o bin/runc -a -tags "cgo seccomp static_build" -ldflags "${LDFLAGS}" ./
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user