All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Uwe Kleine-König" <ukleinek@debian.org>
To: Jiri Olsa <jolsa@kernel.org>, Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Diederik de Haas <didi.debian@cknow.org>, linux-kernel@vger.kernel.org
Subject: [PATCH] tools lib api: Use -D_FORTIFY_SOURCE=2 for non-debug builds
Date: Mon, 24 Apr 2023 12:20:49 +0200	[thread overview]
Message-ID: <20230424102049.58338-1-ukleinek@debian.org> (raw)

Commit 58b79186c343 ("tools lib api: Fix make DEBUG=1 build") intended
to drop -D_FORTIFY_SOURCE=2 for debug builds. It did that, but also
degraded -D_FORTIFY_SOURCE=2 to -D_FORTIFY_SOURCE (which implicitly
defines the symbol to 1), probably by mistake. Add the =2 back.

Fixes: 58b79186c343 ("tools lib api: Fix make DEBUG=1 build")
Signed-off-by: Uwe Kleine-König <ukleinek@debian.org>
---
 tools/lib/api/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/lib/api/Makefile b/tools/lib/api/Makefile
index 044860ac1ed1..e165357e1512 100644
--- a/tools/lib/api/Makefile
+++ b/tools/lib/api/Makefile
@@ -39,7 +39,7 @@ endif
 endif
 
 ifeq ($(DEBUG),0)
-  CFLAGS += -D_FORTIFY_SOURCE
+  CFLAGS += -D_FORTIFY_SOURCE=2
 endif
 
 # Treat warnings as errors unless directed not to
-- 
2.39.2


                 reply	other threads:[~2023-04-24 10:37 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=20230424102049.58338-1-ukleinek@debian.org \
    --to=ukleinek@debian.org \
    --cc=acme@redhat.com \
    --cc=didi.debian@cknow.org \
    --cc=jolsa@kernel.org \
    --cc=linux-kernel@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.