mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-24 07:01:13 +02:00
eclass/go-env: Sync with Gentoo
It's from Gentoo commit 1f754863ff91dc4dca11e6a5217ffd449f39c74c.
This commit is contained in:
parent
71840cd829
commit
00ee3e15c6
@ -46,6 +46,16 @@ go-env_set_compile_environment() {
|
||||
export CGO_CPPFLAGS="${CGO_CPPFLAGS:-$CPPFLAGS}"
|
||||
export CGO_CXXFLAGS="${CGO_CXXFLAGS:-$CXXFLAGS}"
|
||||
export CGO_LDFLAGS="${CGO_LDFLAGS:-$LDFLAGS}"
|
||||
|
||||
# bug #929219
|
||||
if tc-is-gcc ; then
|
||||
CGO_CFLAGS=$(
|
||||
CFLAGS=${CGO_CFLAGS}
|
||||
replace-flags -g3 -g
|
||||
replace-flags -ggdb3 -ggdb
|
||||
printf %s "${CFLAGS}"
|
||||
)
|
||||
fi
|
||||
}
|
||||
|
||||
# @FUNCTION: go-env_goos
|
||||
|
Loading…
x
Reference in New Issue
Block a user