From: Stefan Schantl <stefan.schantl@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH] kernel: Use our LDFLAGS for gcc plugins
Date: Wed, 15 Mar 2023 17:43:32 +0100 [thread overview]
Message-ID: <20230315164332.710357-1-stefan.schantl@ipfire.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 896 bytes --]
Signed-off-by: Stefan Schantl <stefan.schantl(a)ipfire.org>
---
kernel/kernel.nm | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/kernel/kernel.nm b/kernel/kernel.nm
index 62c23132b..9b340f8b3 100644
--- a/kernel/kernel.nm
+++ b/kernel/kernel.nm
@@ -5,7 +5,7 @@
name = kernel
version = 6.2
-release = 1.2
+release = 2
thisapp = linux-%{version}
maintainer = Arne Fitzenreiter <arne.fitzenreiter(a)ipfire.org>
@@ -75,7 +75,9 @@ build
sed -e "/^COLORIZE_PLUGIN_CFLAGS/d" \
-i Makefile
- sed -e "s/\$(HOST_LFS_CFLAGS)/& -fPIC/g" -i Makefile
+ # Use our linker flags while building the compiler plugins.
+ sed -i '/^plugin_ldflags\s\+=/ s/$/ %{LDFLAGS}/' \
+ scripts/gcc-plugins/Makefile
# Get rid of unwanted files resulting from patch fuzz.
find . \( -name "*.orig" -o -name "*~" \) -exec rm -f {} \; >/dev/null
--
2.30.2
reply other threads:[~2023-03-15 16:43 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=20230315164332.710357-1-stefan.schantl@ipfire.org \
--to=stefan.schantl@ipfire.org \
--cc=development@lists.ipfire.org \
/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