Makefile: fix libgray.a with parallel building

ar does not support multiple builder writing to the same file.
This disable parallel building for .a targets.
See also "Archive Pitfalls" in the GNU Make manual.
This commit is contained in:
Michele Guerini Rocco 2023-10-17 11:01:51 +02:00
parent c889c754f7
commit af1ed7d1b6
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450

View File

@ -98,6 +98,9 @@ endif
.PHONY: all clean install docs
# Don't update archives in parallel, it's unsupported
.NOTPARALLEL: $(LIBDIR)/libgray.a
all: $(BINARIES) $(LIBRARIES)
# Remove all generated files