From 993dfe4ad15b68711dcf70e8569da52a75dbd654 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Bidar?= Date: Thu, 28 Mar 2024 17:50:16 +0200 Subject: [PATCH] [preload] Ensure exported.h is generated first to fix parallel builds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Björn Bidar --- preload/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/preload/Makefile b/preload/Makefile index be40f80c..12091a2b 100644 --- a/preload/Makefile +++ b/preload/Makefile @@ -44,6 +44,11 @@ targets := $(targets) $(D)/libsb2.$(SHLIBEXT) $(D)/libsb2.o $(D)/sb_l10n.o: $(OBJDIR)/preload/exported.h $(OBJDIR)/preload/exported.h $(D)/ldexportlist: $(OBJDIR)/preload/wrappers.c +# Include both paths with $(OBJDIR) and without +# Make doesn't seem to follow the .NOTPARALLEL rule correctly +# without +.NOTPARALLEL: $(OBJDIR)/preload/exported.h +.NOTPARALLEL: preload/exported.h $(OBJDIR)/preload/wrappers.c: preload/interface.master preload/gen-interface.pl $(MKOUTPUTDIR) $(P)PERL