diff mbox series

[4/4] go: Use CC for CC_FOR_TARGET and CXX for CXX_FOR_TARGET

Message ID dac6679c71b845d4adeb7b1c7c75f0af32fe0435.1488046239.git.raj.khem@gmail.com
State New
Headers show
Series Add golang basic infrastructure | expand

Commit Message

Khem Raj Feb. 25, 2017, 6:13 p.m. UTC
Helps building with clang

Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 meta/recipes-devtools/go/go.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.11.1

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
diff mbox series

Patch

diff --git a/meta/recipes-devtools/go/go.inc b/meta/recipes-devtools/go/go.inc
index 2449936dab..754fa34c1b 100644
--- a/meta/recipes-devtools/go/go.inc
+++ b/meta/recipes-devtools/go/go.inc
@@ -13,8 +13,8 @@  export GOARM = "${TARGET_GOARM}"
 export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go"
 export GOROOT_FINAL = "${libdir}/go"
 export CGO_ENABLED = "1"
-export CC_FOR_TARGET="${TARGET_PREFIX}gcc ${TARGET_CC_ARCH} --sysroot=${STAGING_DIR_TARGET}"
-export CXX_FOR_TARGET="${TARGET_PREFIX}g++ ${TARGET_CC_ARCH} --sysroot=${STAGING_DIR_TARGET}"
+export CC_FOR_TARGET = "${CC}"
+export CXX_FOR_TARGET = "${CXX}"
 
 do_configure[noexec] = "1"