mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-25 11:30:37 -09:00
package/python3: make SuperH tweak actually effective
In commita68899d49e("package/python3: work around GCC bug 121567"), we introduced a work around for a gcc bug, by reducing to -O1 the optimization level on SuperH. However, it turns out that this is not sufficient, as the build will only succeeded at -O0. Fixes: https://autobuild.buildroot.net/results/31f/31f34a983036b4135c12e5797b5c2258ab33e6c2/ Which is a config with BR2_OPTIMIZE_2=y, which means BR2_TOOLCHAIN_HAS_GCC_BUG_121567=y, and therefore -O1 is passed, but still the build fails. At -O0 the build doesn't fail. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Julien Olivain <ju.o@free.fr> (cherry picked from commit0f938aed25) Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
committed by
Thomas Perale
parent
42f81fae5b
commit
f3a7d86a7c
@@ -192,7 +192,7 @@ endif
|
||||
PYTHON3_CFLAGS = $(TARGET_CFLAGS)
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_121567),y)
|
||||
PYTHON3_CFLAGS += -O1
|
||||
PYTHON3_CFLAGS += -O0
|
||||
endif
|
||||
|
||||
PYTHON3_CONF_ENV += \
|
||||
|
||||
Reference in New Issue
Block a user