@@ -5,6 +5,8 @@ DEPENDS = "go-native virtual/${HOST_PREFIX}go-crosssdk virtual/nativesdk-${HOST_
virtual/nativesdk-${HOST_PREFIX}compilerlibs"
PN = "go-cross-canadian-${TRANSLATED_TARGET_ARCH}"
+GOARCH = "${HOST_GOARCH}"
+
# it uses gcc on build machine during go-cross-canadian bootstrap, but
# the gcc version may be old and not support option '-fmacro-prefix-map'
# which is one of default values of DEBUG_PREFIX_MAP
@@ -52,7 +54,7 @@ do_install() {
install -d ${D}${libdir}/go/pkg/tool
cp --preserve=mode,timestamps -R ${B}/pkg/tool/${HOST_GOTUPLE} ${D}${libdir}/go/pkg/tool/
install -d ${D}${bindir} ${D}${libdir}/go/bin
- for f in ${B}/${GO_BUILD_BINDIR}/*
+ for f in $(find ${B}/${GO_BUILD_BINDIR} -type f)
do
base=`basename $f`
install -m755 $f ${D}${libdir}/go/bin