From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
To: Derek Barbosa <debarbos@redhat.com>
Cc: Wander Lairson Costa <wander@redhat.com>,
williams@redhat.com, linux-rt-users@vger.kernel.org,
crwood@redhat.com
Subject: Re: [PATCH 0/3] Improve Makefile robustness and explicitness
Date: Wed, 12 Nov 2025 08:41:29 +0100 [thread overview]
Message-ID: <20251112074129.cohRpsWQ@linutronix.de> (raw)
In-Reply-To: <lufi4xb6bbpllszjdfsasor3ehkn3lyynpnmtogegm2l65eop2@4j64xkvwlw4g>
On 2025-11-11 11:29:17 [-0500], Derek Barbosa wrote:
> > The default set should not be something that is not required
> > and is not always provided by the compiler specified as minimum.
>
> With this tidbit in mind, what else do you propose we strip out and leave to the
> packagers? Is it worth retaining some of the debug & hardening flags, and
> leaving the rest to them?
I don't know what this is part of, I just seen the Makefile bits. I
don't worry if you keep some debug flags and or hardening which are
universal. Just don't set anything special which you might need to
filter out later… Or add later on additional bits once "new" debug or
hardening switches become a thing because this is IMHO not the place for
it. It should be passed by the upper layer.
A simple example would be using cmake: Set the .c files you want to
compile, set the libs you need as dependency and are done. cmake has a
profile for debug, release and release+debug. The build environment can
set custom flags. This is what I see is mostly done.
> Cheers,
Sebastian
next prev parent reply other threads:[~2025-11-12 7:41 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-07 16:17 [PATCH 0/3] Improve Makefile robustness and explicitness Wander Lairson Costa
2025-11-07 16:17 ` [PATCH 1/3] Makefile: Conditionally add -mno-omit-leaf-frame-pointer Wander Lairson Costa
2025-11-07 16:17 ` [PATCH 2/3] Makefile: Improve compiler flag detection for -fcf-protection Wander Lairson Costa
2025-11-07 16:41 ` Derek Barbosa
2025-11-07 16:17 ` [PATCH 3/3] Makefile: Explicitly run the 'test' target in the tests directory Wander Lairson Costa
2025-11-11 14:50 ` [PATCH 0/3] Improve Makefile robustness and explicitness Sebastian Andrzej Siewior
2025-11-11 15:35 ` Derek Barbosa
2025-11-11 15:50 ` Sebastian Andrzej Siewior
2025-11-11 16:29 ` Derek Barbosa
2025-11-12 7:41 ` Sebastian Andrzej Siewior [this message]
2025-11-12 12:12 ` Wander Lairson Costa
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=20251112074129.cohRpsWQ@linutronix.de \
--to=bigeasy@linutronix.de \
--cc=crwood@redhat.com \
--cc=debarbos@redhat.com \
--cc=linux-rt-users@vger.kernel.org \
--cc=wander@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