From 98c9080c9d8c1a5fa9eb994df16311e04679bc64 Mon Sep 17 00:00:00 2001 From: Geoff Levand Date: Wed, 20 May 2015 10:45:41 -0700 Subject: [PATCH] eclass/coreos-go: Conditional CGO_ENABLED assigment To allow ebuilds to set CGO_ENABLED. Signed-off-by: Geoff Levand --- .../src/third_party/coreos-overlay/eclass/coreos-go.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/coreos-go.eclass b/sdk_container/src/third_party/coreos-overlay/eclass/coreos-go.eclass index 90de14f636..3aab6ce0c8 100644 --- a/sdk_container/src/third_party/coreos-overlay/eclass/coreos-go.eclass +++ b/sdk_container/src/third_party/coreos-overlay/eclass/coreos-go.eclass @@ -64,7 +64,7 @@ coreos-go_src_prepare() { fi export CC=$(tc-getCC) - export CGO_ENABLED=1 + export CGO_ENABLED=${CGO_ENABLED:-1} export CGO_CFLAGS="${CFLAGS}" export CGO_CPPFLAGS="${CPPFLAGS}" export CGO_CXXFLAGS="${CXXFLAGS}"