lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20240814030436.2022155-1-briannorris@chromium.org>
Date: Tue, 13 Aug 2024 20:03:51 -0700
From: Brian Norris <briannorris@...omium.org>
To: Arnaldo Carvalho de Melo <acme@...hat.com>
Cc: bpf@...r.kernel.org,
	Thorsten Leemhuis <linux@...mhuis.info>,
	linux-kernel@...r.kernel.org,
	linux-kbuild@...r.kernel.org,
	Jiri Olsa <jolsa@...nel.org>,
	Brian Norris <briannorris@...omium.org>
Subject: [PATCH] tools build: Respect HOSTCFLAGS in 'fixdep' compilation

When refactoring the Makefile rules for 'fixdep', I open-coded the
compilation rule (avoiding the "Build" recursive make, and therefore
tools/build/Build.include). In doing so, I omitted HOSTCFLAGS, which was
previously part of the host_c_flags definition.

Add that back in, so builds get a matching set of host CFLAGS and
LDFLAGS for this step.

Reported-by: Thorsten Leemhuis <linux@...mhuis.info>
Closes: https://lore.kernel.org/lkml/99ae0d34-ed76-4ca0-a9fd-c337da33c9f9@leemhuis.info/
Tested-by: Thorsten Leemhuis <linux@...mhuis.info>
Fixes: ea974028a049 ("tools build: Avoid circular .fixdep-in.o.cmd issues")
Signed-off-by: Brian Norris <briannorris@...omium.org>
---

 tools/build/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/build/Makefile b/tools/build/Makefile
index fea3cf647f5b..85321c7b6804 100644
--- a/tools/build/Makefile
+++ b/tools/build/Makefile
@@ -44,4 +44,4 @@ ifneq ($(wildcard $(TMP_O)),)
 endif
 
 $(OUTPUT)fixdep: $(srctree)/tools/build/fixdep.c
-	$(QUIET_CC)$(HOSTCC) $(KBUILD_HOSTLDFLAGS) -o $@ $<
+	$(QUIET_CC)$(HOSTCC) $(HOSTCFLAGS) $(KBUILD_HOSTLDFLAGS) -o $@ $<
-- 
2.46.0.76


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ