summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/go/go-native.inc12
1 files changed, 6 insertions, 6 deletions
diff --git a/meta/recipes-devtools/go/go-native.inc b/meta/recipes-devtools/go/go-native.inc
index c1ada5121a..c21f8fda78 100644
--- a/meta/recipes-devtools/go/go-native.inc
+++ b/meta/recipes-devtools/go/go-native.inc
@@ -22,14 +22,14 @@ do_compile() {
22} 22}
23 23
24make_wrapper() { 24make_wrapper() {
25 rm -f ${D}${bindir}/$2 25 rm -f ${D}${bindir}/$2$3
26 cat <<END >${D}${bindir}/$2 26 cat <<END >${D}${bindir}/$2$3
27#!/bin/bash 27#!/bin/bash
28here=\`dirname \$0\` 28here=\`dirname \$0\`
29export GOROOT="${GOROOT:-\`readlink -f \$here/../lib/go\`}" 29export GOROOT="${GOROOT:-\`readlink -f \$here/../lib/go$3\`}"
30\$here/../lib/go/bin/$1 "\$@" 30\$here/../lib/go$3/bin/$1 "\$@"
31END 31END
32 chmod +x ${D}${bindir}/$2 32 chmod +x ${D}${bindir}/$2$3
33} 33}
34 34
35do_install() { 35do_install() {
@@ -45,7 +45,7 @@ do_install() {
45 do 45 do
46 base=`basename $f` 46 base=`basename $f`
47 install -m755 $f ${D}${libdir}/go${BOOTSTRAP}/bin 47 install -m755 $f ${D}${libdir}/go${BOOTSTRAP}/bin
48 make_wrapper $base $base 48 make_wrapper $base $base ${BOOTSTRAP}
49 done 49 done
50} 50}
51 51