Skip to contentSkip to conversation

go-cross: depend on virtual/${TARGET_PREFIX}gcc

PATCH New Mark Asselstine 1 participant 1 message Jan 31, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 go-cross: depend on virtual/${TARGET_PREFIX}gcc

This fixes the compile time error

#runtime/cgo
exec: "x86_64-overc-linux-gcc": executable file not found in $PATH

Since we set CC_FOR_TARGET to ${TARGET_PREFIX}gcc we need to ensure this is present by adding it to the recipe DEPENDS.

---
 recipes-devtools/go-cross/go-cross.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-devtools/go-cross/go-cross.inc +1 -1
index 0859fd0..7f74903 100644
@@ -1,7 +1,7 @@
 inherit cross
 
 # libgcc is required for the target specific libraries to build properly
-DEPENDS += "go-native libgcc"
+DEPENDS += "go-native libgcc virtual/${TARGET_PREFIX}gcc"
 
 # Prevent runstrip from running because you get errors when the host arch != target arch
 #INHIBIT_PACKAGE_STRIP = "1"
Signature · 1 line
2.7.4