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:
Mirza Krak 2019-06-03 11:21:01 +02:00 committed by Arnout Vandecappelle (Essensium/Mind)
parent fa25bf1d69
commit d65b6b337b

View File

@ -35,6 +35,8 @@ GO_TARGET_ENV = \
$(GO_COMMON_ENV)
GO_HOST_ENV = \
CGO_CFLAGS="$(HOST_CFLAGS)" \
CGO_LDFLAGS="$(HOST_LDFLAGS)" \
$(GO_COMMON_ENV)
################################################################################