eclass/coreos-go: Conditional CGO_ENABLED assigment

To allow ebuilds to set CGO_ENABLED.

Signed-off-by: Geoff Levand <geoff@infradead.org>
This commit is contained in:
Geoff Levand 2015-05-20 10:45:41 -07:00
parent 97e97a0ce6
commit 98c9080c9d

View File

@ -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}"