Quellcode durchsuchen

package/pkg-golang: add PATH in GO_TARGET_ENV

Some Go packages use pkg-config to detect native libraries, so we must
have $(BR_PATH) in the PATH so that our pkg-config in HOST_DIR gets
used.

Fixes:

  http://autobuild.buildroot.net/results/f85414244c25aba07a05109b5cd7658ae44a64ea/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Thomas Petazzoni vor 7 Jahren
Ursprung
Commit
dbe32d364a
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  1. 1 0
      package/pkg-golang.mk

+ 1 - 0
package/pkg-golang.mk

@@ -27,6 +27,7 @@ GO_BIN = $(HOST_DIR)/bin/go
 # cross-compiled binaries when GOBIN is set"
 GO_TARGET_ENV = \
 	$(HOST_GO_TARGET_ENV) \
+	PATH=$(BR_PATH) \
 	GOBIN= \
 	CGO_ENABLED=$(HOST_GO_CGO_ENABLED)