mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-08 19:02:10 +01:00
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:
parent
97e97a0ce6
commit
98c9080c9d
@ -64,7 +64,7 @@ coreos-go_src_prepare() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
export CC=$(tc-getCC)
|
export CC=$(tc-getCC)
|
||||||
export CGO_ENABLED=1
|
export CGO_ENABLED=${CGO_ENABLED:-1}
|
||||||
export CGO_CFLAGS="${CFLAGS}"
|
export CGO_CFLAGS="${CFLAGS}"
|
||||||
export CGO_CPPFLAGS="${CPPFLAGS}"
|
export CGO_CPPFLAGS="${CPPFLAGS}"
|
||||||
export CGO_CXXFLAGS="${CXXFLAGS}"
|
export CGO_CXXFLAGS="${CXXFLAGS}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user