From 34d0066c5b0bb5e915851ce9e2af97b42200e6f0 Mon Sep 17 00:00:00 2001 From: Matthew Garrett Date: Thu, 18 Aug 2016 14:19:29 -0700 Subject: [PATCH] Revert "app-emulation/rkt: Remove go environment settings" After this we're no longer passing -nopie to the linker, rkt is ending up with a TEXTREL section and SELinux is blocking execution. Revert until it's fixed. --- .../coreos-overlay/app-emulation/rkt/rkt-9999.ebuild | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sdk_container/src/third_party/coreos-overlay/app-emulation/rkt/rkt-9999.ebuild b/sdk_container/src/third_party/coreos-overlay/app-emulation/rkt/rkt-9999.ebuild index fa10490c8e..e1e6ab74c1 100644 --- a/sdk_container/src/third_party/coreos-overlay/app-emulation/rkt/rkt-9999.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/app-emulation/rkt/rkt-9999.ebuild @@ -119,6 +119,12 @@ src_configure() { append-ldflags -nopie fi + export CC=$(tc-getCC) + export CGO_ENABLED=1 + export CGO_CFLAGS="${CFLAGS}" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" export BUILDDIR export V=1