mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 12:50:22 +02:00
runc: ensure that ${GO} is exported build/make
The runc makefile now uses $(GO) universally, but sets the variable as GO := go by default. This means that the host go will be used instead of our recipe sysroot variant. A simple export of the variable is not enough in all cases (due to Make assignments), so both export it AND pass it directly to the oe_make call. This fixes docker-runc builds on ARM64. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
This commit is contained in:
parent
d7d310ae41
commit
e9d74162a9
|
@ -11,6 +11,8 @@ S = "${WORKDIR}/git"
|
|||
PV = "${RUNC_VERSION}+git${SRCPV}"
|
||||
|
||||
inherit go
|
||||
inherit goarch
|
||||
|
||||
RRECOMMENDS_${PN} = "lxc docker"
|
||||
PROVIDES += "virtual/runc"
|
||||
RPROVIDES_${PN} = "virtual/runc"
|
||||
|
@ -20,7 +22,7 @@ GO_IMPORT = "import"
|
|||
LIBCONTAINER_PACKAGE="github.com/opencontainers/runc/libcontainer"
|
||||
|
||||
do_configure[noexec] = "1"
|
||||
EXTRA_OEMAKE="BUILDTAGS=''"
|
||||
EXTRA_OEMAKE="BUILDTAGS='' GO=${GO}"
|
||||
|
||||
do_compile() {
|
||||
# Set GOPATH. See 'PACKAGERS.md'. Don't rely on
|
||||
|
@ -44,6 +46,8 @@ do_compile() {
|
|||
export CGO_ENABLED="1"
|
||||
export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}"
|
||||
export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}"
|
||||
export GO=${GO}
|
||||
|
||||
export CFLAGS=""
|
||||
export LDFLAGS=""
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user