public inbox for linux-rt-users@vger.kernel.org
 help / color / mirror / Atom feed
From: Wander Lairson Costa <wander@redhat.com>
To: williams@redhat.com, jkacur@redhat.com, luffyluo@tencent.com,
	davidlt@rivosinc.com, linux-rt-users@vger.kernel.org
Cc: Wander Lairson Costa <wander@redhat.com>,
	Wander Lairson Costa <wcosta@redhat.com>
Subject: [stalld PATCH] Makefile: Remove LTO flags from build options
Date: Fri,  9 Jan 2026 18:10:05 -0300	[thread overview]
Message-ID: <20260109211005.272868-1-wander@redhat.com> (raw)

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


                 reply	other threads:[~2026-01-09 21:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260109211005.272868-1-wander@redhat.com \
    --to=wander@redhat.com \
    --cc=davidlt@rivosinc.com \
    --cc=jkacur@redhat.com \
    --cc=linux-rt-users@vger.kernel.org \
    --cc=luffyluo@tencent.com \
    --cc=wcosta@redhat.com \
    --cc=williams@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox