package/pkg-golang: add cflags/ldflags to GO_HOST_ENV
If a go host package is built using cgo, it needs access to HOST_CFLAGS/HOST_LDFLAGS to utilize host packages it might depend on. Signed-off-by: Mirza Krak <mirza.krak@northern.tech> Acked-by: Adam Duskett <aduskett@gmail.com> Tested-by: Adam Duskett <aduskett@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
parent
fa25bf1d69
commit
d65b6b337b
@ -35,6 +35,8 @@ GO_TARGET_ENV = \
|
||||
$(GO_COMMON_ENV)
|
||||
|
||||
GO_HOST_ENV = \
|
||||
CGO_CFLAGS="$(HOST_CFLAGS)" \
|
||||
CGO_LDFLAGS="$(HOST_LDFLAGS)" \
|
||||
$(GO_COMMON_ENV)
|
||||
|
||||
################################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user