diff options
| -rw-r--r-- | meta/recipes-devtools/go/go-native.inc | 12 |
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 | ||
| 24 | make_wrapper() { | 24 | make_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 |
| 28 | here=\`dirname \$0\` | 28 | here=\`dirname \$0\` |
| 29 | export GOROOT="${GOROOT:-\`readlink -f \$here/../lib/go\`}" | 29 | export GOROOT="${GOROOT:-\`readlink -f \$here/../lib/go$3\`}" |
| 30 | \$here/../lib/go/bin/$1 "\$@" | 30 | \$here/../lib/go$3/bin/$1 "\$@" |
| 31 | END | 31 | END |
| 32 | chmod +x ${D}${bindir}/$2 | 32 | chmod +x ${D}${bindir}/$2$3 |
| 33 | } | 33 | } |
| 34 | 34 | ||
| 35 | do_install() { | 35 | do_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 | ||
