Makefile: Remove LTO flags from build options
PATCH 1/1 Makefile: Remove LTO flags from build options
Remove the -flto=auto and -ffat-lto-objects flags from the FOPTS variable. Link-Time Optimization can cause issues with certain toolchains and adds complexity to the build process without providing significant benefits for this codebase. The removal simplifies the build and improves compatibility across different build environments.
Signed-off-by Wander Lairson Costa <[email protected]>
Signed-off-by Wander Lairson Costa <[email protected]>
--- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
@@ -52,7 +52,7 @@ FCF_PROTECTION := $(shell echo 'int main(void){return 0;}' | \ -o /dev/null 2>/dev/null && \ echo '-fcf-protection') -FOPTS := -flto=auto -ffat-lto-objects -fexceptions -fstack-protector-strong \ +FOPTS := -fexceptions -fstack-protector-strong \ -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer \ $(strip $(FCF_PROTECTION)) -fpie
Signature · 1 line
2.52.0