mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-01 06:21:56 -09:00
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 <thomas.petazzoni@bootlin.com>
This commit is contained in:
@@ -55,6 +55,9 @@ HOST_GO_TARGET_ENV = \
|
|||||||
GOCACHE="$(HOST_GO_TARGET_CACHE)" \
|
GOCACHE="$(HOST_GO_TARGET_CACHE)" \
|
||||||
CC="$(TARGET_CC)" \
|
CC="$(TARGET_CC)" \
|
||||||
CXX="$(TARGET_CXX)" \
|
CXX="$(TARGET_CXX)" \
|
||||||
|
CGO_CFLAGS="$(TARGET_CFLAGS)" \
|
||||||
|
CGO_CXXFLAGS="$(TARGET_CXXFLAGS)" \
|
||||||
|
CGO_LDFLAGS="$(TARGET_LDFLAGS)" \
|
||||||
GOTOOLDIR="$(HOST_GO_TOOLDIR)"
|
GOTOOLDIR="$(HOST_GO_TOOLDIR)"
|
||||||
|
|
||||||
# The go compiler's cgo support uses threads. If BR2_TOOLCHAIN_HAS_THREADS is
|
# The go compiler's cgo support uses threads. If BR2_TOOLCHAIN_HAS_THREADS is
|
||||||
|
|||||||
Reference in New Issue
Block a user