On Tue, 2020-09-22 at 22:55 +0200, Tobias Burnus wrote: > This patch breaks the cross build here: > ...gcc/analyzer/engine.cc:65:10: fatal error: zlib.h: No such file or > directory > > I think you need to do something similar in Makefile.in as lto- > compress has: > > # lto-compress.o needs $(ZLIBINC) added to the include flags. > CFLAGS-lto-compress.o += $(ZLIBINC) $(ZSTD_INC) > > Tobias
Sorry about that. Does the following fix it for you? gcc/ChangeLog: * Makefile.in: Add $(ZLIBINC) to CFLAGS-analyzer/engine.o. --- gcc/Makefile.in | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/Makefile.in b/gcc/Makefile.in index c710bad27b1..9c6c1c93b97 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -2296,6 +2296,7 @@ s-bversion: BASE-VER CFLAGS-toplev.o += -DTARGET_NAME=\"$(target_noncanonical)\" CFLAGS-optinfo-emit-json.o += -DTARGET_NAME=\"$(target_noncanonical)\" $(ZLIBINC) +CFLAGS-analyzer/engine.o += $(ZLIBINC) pass-instances.def: $(srcdir)/passes.def $(PASSES_EXTRA) \ $(srcdir)/gen-pass-instances.awk -- 2.26.2