From 3bffe5aa2dad3492fd68230ed28387cf9d453cea Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Wed, 17 Jan 2024 09:24:55 -0300 Subject: [PATCH] Use --disable-default-pie for sparc in build-many-glibcs.py The staticcally built binaries fails without this option [1]. Checked on sparc64-linux-gnu and sparcv9-linux-gnu. [1] https://sourceware.org/bugzilla/show_bug.cgi?id=29575 --- scripts/build-many-glibcs.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py index d08afc4074..d142684fdf 100755 --- a/scripts/build-many-glibcs.py +++ b/scripts/build-many-glibcs.py @@ -436,18 +436,20 @@ class Context(object): gcc_cfg=['--without-fp']) self.add_config(arch='sparc64', os_name='linux-gnu', - glibcs=[{}, - {'arch': 'sparcv9', + glibcs=[{'cfg' : ['--disable-default-pie']}, + {'cfg' : ['--disable-default-pie'], + 'arch': 'sparcv9', 'ccopts': '-m32 -mlong-double-128 -mcpu=v9'}], extra_glibcs=[{'variant': 'leon3', + 'cfg' : ['--disable-default-pie'], 'arch' : 'sparcv8', 'ccopts' : '-m32 -mlong-double-128 -mcpu=leon3'}, {'variant': 'disable-multi-arch', - 'cfg': ['--disable-multi-arch']}, + 'cfg': ['--disable-multi-arch', '--disable-default-pie']}, {'variant': 'disable-multi-arch', 'arch': 'sparcv9', 'ccopts': '-m32 -mlong-double-128 -mcpu=v9', - 'cfg': ['--disable-multi-arch']}]) + 'cfg': ['--disable-multi-arch', '--disable-default-pie']}]) self.add_config(arch='x86_64', os_name='linux-gnu', gcc_cfg=['--with-multilib-list=m64,m32,mx32'],