diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2023-02-10 07:42:13 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-02-15 10:21:34 +0000 |
commit | 34157b4b1aa40fbf2a70238a553e54f6bd157ace (patch) | |
tree | aa8c53164735df2d0a206632f2daa4564b8fdf11 /meta/recipes-devtools/go | |
parent | 19b53dc47f2b8aaf8ef171213876db2095eb6211 (diff) | |
download | poky-34157b4b1aa40fbf2a70238a553e54f6bd157ace.tar.gz |
go-cross-canadian: use gcc-crosssdk, not gcc-native
The recipe was building native go against build host headers and libraries,
and then installing it as a nativesdk item, which is entirely incorrect. This has
been working by coincidence (go generally uses C and C libraries lightly)
but with go 1.20 this turned into hard breakage.
Also nativesdk sysroot was being passed in incorrectly.
(From OE-Core rev: 9212704a0e6ba79c3a3c4d85fc132e0ab6de1747)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/go')
-rw-r--r-- | meta/recipes-devtools/go/go-cross-canadian.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/recipes-devtools/go/go-cross-canadian.inc b/meta/recipes-devtools/go/go-cross-canadian.inc index c1aa987427..5a80ceffa3 100644 --- a/meta/recipes-devtools/go/go-cross-canadian.inc +++ b/meta/recipes-devtools/go/go-cross-canadian.inc | |||
@@ -21,10 +21,10 @@ export GO_LDFLAGS = '-linkmode external -extld ${HOST_PREFIX}gcc -extldflags "-- | |||
21 | do_configure[noexec] = "1" | 21 | do_configure[noexec] = "1" |
22 | 22 | ||
23 | do_compile() { | 23 | do_compile() { |
24 | export CC_FOR_${HOST_GOTUPLE}="${HOST_PREFIX}gcc --sysroot=${STAGING_DIR_HOST}${SDKPATHNATIVE} ${SECURITY_NOPIE_CFLAGS}" | 24 | export CC_FOR_${HOST_GOTUPLE}="${HOST_PREFIX}gcc --sysroot=${STAGING_DIR_HOST} ${SECURITY_NOPIE_CFLAGS}" |
25 | export CXX_FOR_${HOST_GOTUPLE}="${HOST_PREFIX}gxx --sysroot=${STAGING_DIR_HOST}${SDKPATHNATIVE} ${SECURITY_NOPIE_CFLAGS}" | 25 | export CXX_FOR_${HOST_GOTUPLE}="${HOST_PREFIX}gxx --sysroot=${STAGING_DIR_HOST} ${SECURITY_NOPIE_CFLAGS}" |
26 | cd src | 26 | cd src |
27 | ./make.bash --host-only --no-banner | 27 | ./make.bash --target-only --no-banner |
28 | cd ${B} | 28 | cd ${B} |
29 | } | 29 | } |
30 | do_compile[cleandirs] += "${GOTMPDIR} ${B}/bin ${B}/pkg" | 30 | do_compile[cleandirs] += "${GOTMPDIR} ${B}/bin ${B}/pkg" |