Skip to content

Commit 3fe4cb5

Browse files
committed
native: fix parallel build issue
This can be reproduced with `make --shuffle=3224289900`. The $(TESTLIB2) target needs libtestlib.* as it uses $(TESTDEP) in the rule, but it doesn't depend on that library actually being built yet. Fix that. Bug: https://bugs.gentoo.org/963877 Signed-off-by: Sam James <[email protected]>
1 parent 01c7807 commit 3fe4cb5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎native/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ TESTDEP=$(TESTLIB:.dll=.lib)
509509
else
510510
TESTDEP=$(TESTLIB)
511511
endif
512-
$(TESTLIB2): $(BUILD)/testlib2.o
512+
$(TESTLIB2): $(BUILD)/testlib2.o $(TESTDEP)
513513
$(LD) $(LDFLAGS) $< $(TESTDEP) $(LIBS)
514514

515515
ifneq ($(DYNAMIC_LIBFFI),true)

0 commit comments

Comments
 (0)