Skip to contentSkip to conversation

Makefile: Remove LTO flags from build options

PATCH New Wander Lairson Costa 1 participant 1 message Jan 9 Kbuild

lore
Share & tools
lore
#0 lore raw

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.

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
index 3188d2f..a7d7875 100644
@@ -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