ulib: Disable LTO when building the library

The library uses symbol renaming, but this is not supported with LTO.
Ensure that LTO is disabled if ULIB is used.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-09-06 16:48:26 -06:00
parent a5fc8d6989
commit 6d8fd50d24

View File

@@ -128,7 +128,7 @@ config ARCH_SUPPORTS_LTO
config LTO
bool "Enable Link Time Optimizations"
depends on ARCH_SUPPORTS_LTO
depends on ARCH_SUPPORTS_LTO && !ULIB
help
This option enables Link Time Optimization (LTO), a mechanism which
allows the compiler to optimize between different compilation units.