diff --git a/Kconfig.zephyr b/Kconfig.zephyr index 829deac2a9c549..5ad2fb2bf85c0b 100644 --- a/Kconfig.zephyr +++ b/Kconfig.zephyr @@ -430,7 +430,7 @@ endchoice config LTO bool "Link Time Optimization [EXPERIMENTAL]" - depends on !(GEN_ISR_TABLES || GEN_IRQ_VECTOR_TABLE) || ISR_TABLES_LOCAL_DECLARATION + depends on (!(GEN_ISR_TABLES || GEN_IRQ_VECTOR_TABLE) || ISR_TABLES_LOCAL_DECLARATION) && !NATIVE_LIBRARY select EXPERIMENTAL help This option enables Link Time Optimization.