The --build= option to configure is leaking into target binaries, which means
different host architectures generate different output. Fix this by removing 
that
part of the string alongside the other patch changes we already make.

Signed-off-by: Richard Purdie <[email protected]>
---
 meta/recipes-devtools/gcc/gcc-common.inc | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-devtools/gcc/gcc-common.inc 
b/meta/recipes-devtools/gcc/gcc-common.inc
index a7f01cd045e..41a8177e0c3 100644
--- a/meta/recipes-devtools/gcc/gcc-common.inc
+++ b/meta/recipes-devtools/gcc/gcc-common.inc
@@ -125,8 +125,10 @@ remove_sysroot_paths_from_configargs () {
        # plugins. Additionally the path is embeddeded into the output binary, 
this
        # prevents building a reproducible binary.
        oe_runmake configure-gcc
-       sed -i "s@${STAGING_DIR_TARGET}@$replacement@g" ${B}/gcc/configargs.h
-       sed -i "s@${STAGING_DIR_HOST}@/$replacement@g" ${B}/gcc/configargs.h
+       sed -i -e "s@${STAGING_DIR_TARGET}@$replacement@g" \
+              -e "s@${STAGING_DIR_HOST}@/$replacement@g" \
+              -e "s@--build=${BUILD_ARCH}@@g" \
+                  ${B}/gcc/configargs.h
 }
 
 remove_sysroot_paths_from_checksum_options () {
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#246588): 
https://lists.openembedded.org/g/openembedded-core/message/246588
Mute This Topic: https://lists.openembedded.org/mt/121410110/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to