aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/go/go-1.6/fix-target-cc-for-build.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/go/go-1.6/fix-target-cc-for-build.patch')
-rw-r--r--meta/recipes-devtools/go/go-1.6/fix-target-cc-for-build.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/meta/recipes-devtools/go/go-1.6/fix-target-cc-for-build.patch b/meta/recipes-devtools/go/go-1.6/fix-target-cc-for-build.patch
new file mode 100644
index 0000000000..2f6156ecd2
--- /dev/null
+++ b/meta/recipes-devtools/go/go-1.6/fix-target-cc-for-build.patch
@@ -0,0 +1,17 @@
+Put Quotes around CC_FOR_TARGET since it can be mutliple words e.g. in OE
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+Upstream-Status: Pending
+Index: go/src/make.bash
+===================================================================
+--- go.orig/src/make.bash 2015-07-29 13:28:11.334031696 -0700
++++ go/src/make.bash 2015-07-29 13:36:55.814465630 -0700
+@@ -158,7 +158,7 @@
+ fi
+
+ echo "##### Building packages and commands for $GOOS/$GOARCH."
+-CC=$CC_FOR_TARGET "$GOTOOLDIR"/go_bootstrap install $GO_FLAGS -gcflags "$GO_GCFLAGS" -ldflags "$GO_LDFLAGS" -v std cmd
++CC="$CC_FOR_TARGET" "$GOTOOLDIR"/go_bootstrap install $GO_FLAGS -gcflags "$GO_GCFLAGS" -ldflags "$GO_LDFLAGS" -v std cmd
+ echo
+
+ rm -f "$GOTOOLDIR"/go_bootstrap