* [stalld PATCH] Makefile: Remove LTO flags from build options
@ 2026-01-09 21:10 Wander Lairson Costa
0 siblings, 0 replies; only message in thread
From: Wander Lairson Costa @ 2026-01-09 21:10 UTC (permalink / raw)
To: williams, jkacur, luffyluo, davidlt, linux-rt-users
Cc: Wander Lairson Costa, Wander Lairson Costa
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 <wcosta@redhat.com>
Signed-off-by: Wander Lairson Costa <wander@redhat.com>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 3188d2f..a7d7875 100644
--- a/Makefile
+++ b/Makefile
@@ -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
--
2.52.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-01-09 21:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-09 21:10 [stalld PATCH] Makefile: Remove LTO flags from build options Wander Lairson Costa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox