From: Thomas Petazzoni Date: Sat, 29 Aug 2020 09:13:07 +0000 (+0200) Subject: package/go: pass CFLAGS/CXXFLAGS/LDFLAGS in HOST_GO_TARGET_ENV X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7a89fa07ee2813a515da91d884ce5920e1ba1887;p=buildroot.git package/go: pass CFLAGS/CXXFLAGS/LDFLAGS in HOST_GO_TARGET_ENV HOST_GO_HOST_ENV is explicitly specifying HOST_CGO_{CFLAGS,CXXFLAGS,LDFLAGS}, so let's do the same for target packages. Signed-off-by: Thomas Petazzoni --- diff --git a/package/go/go.mk b/package/go/go.mk index 9f86374300..af1548a65e 100644 --- a/package/go/go.mk +++ b/package/go/go.mk @@ -55,6 +55,9 @@ HOST_GO_TARGET_ENV = \ GOCACHE="$(HOST_GO_TARGET_CACHE)" \ CC="$(TARGET_CC)" \ CXX="$(TARGET_CXX)" \ + CGO_CFLAGS="$(TARGET_CFLAGS)" \ + CGO_CXXFLAGS="$(TARGET_CXXFLAGS)" \ + CGO_LDFLAGS="$(TARGET_LDFLAGS)" \ GOTOOLDIR="$(HOST_GO_TOOLDIR)" # The go compiler's cgo support uses threads. If BR2_TOOLCHAIN_HAS_THREADS is