From cb046c78e42d8e72c49d1c334b34ef79a08624b0 Mon Sep 17 00:00:00 2001 From: Robin Randhawa <robin.randhawa@arm.com> Date: Fri, 27 Jul 2018 16:35:45 +0100 Subject: [PATCH] Turn the libc and libm rules into 'order-only' prequisites These prerequisites are GNU Make terminology. This change forces the libc rule to be executed first so that the headers that the libm rule needs are available. The original setup was using 'normal' prerequisites which occasionally resulted in bizarre build breakage, especially on multi-core build hosts. Seen often on my 8-way SMP build host. Note that this doesn't impede parallelisation of each rule indepent of the other. It just serializes the rules themselves. This fixes: https://gitlab.redox-os.org/redox-os/relibc/issues/127 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3fc88f32..27203a2b 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ SRC=\ .PHONY: all clean fmt install libc libm test -all: libc libm +all: | libc libm clean: cargo clean -- GitLab