mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] binutils: disable gprofng to fix build with host java installed
@ 2022-12-02 12:58 Philipp Zabel
  2022-12-05 12:53 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Philipp Zabel @ 2022-12-02 12:58 UTC (permalink / raw)
  To: ptxdist; +Cc: Philipp Zabel

Explicitly disable gprofng to avoid a build failure:

  make[5]: Entering directory '.../build-target/binutils-2.39/gprofng/libcollector'
    CC       libgp_collector_la-jprofile.lo
  jprofile.c:32:10: fatal error: jni.h: No such file or directory

if the binutils build system manages to find a Java host installation.
Use an environment variable instead of the --disable-gprofng configure
option for compatibility with older binutils versions.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
 rules/binutils.make | 1 +
 1 file changed, 1 insertion(+)

diff --git a/rules/binutils.make b/rules/binutils.make
index 17b7f7e3e313..bec8436d62fb 100644
--- a/rules/binutils.make
+++ b/rules/binutils.make
@@ -29,6 +29,7 @@ BINUTILS_DIR		:= $(BUILDDIR)/$(BINUTILS)
 
 BINUTILS_CONF_ENV := \
 	$(CROSS_ENV) \
+	enable_gprofng=no \
 	host_configargs='$(strip \
 		--enable-targets=$(PTXCONF_GNU_TARGET) \
 		--disable-nls \
-- 
2.30.2




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-12-05 12:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-02 12:58 [ptxdist] [PATCH] binutils: disable gprofng to fix build with host java installed Philipp Zabel
2022-12-05 12:53 ` [ptxdist] [APPLIED] " Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox