From 73319a6968ad39e65698dbf10b3b14bb9a247132 Mon Sep 17 00:00:00 2001 From: liuhaitao Date: Fri, 13 Mar 2020 11:33:42 +0800 Subject: [PATCH] examples/posix_spawn: Fix parallel build errors at link time During generating symtab.c, compile seqeuence would start with incomplete symtab.c. This change will fix such a situation. Signed-off-by: liuhaitao --- examples/posix_spawn/filesystem/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/posix_spawn/filesystem/Makefile b/examples/posix_spawn/filesystem/Makefile index c9541ef7f..aa6dece2e 100644 --- a/examples/posix_spawn/filesystem/Makefile +++ b/examples/posix_spawn/filesystem/Makefile @@ -78,7 +78,8 @@ $(ROMFS_HDR) : $(ROMFS_IMG) # Create the exported symbol table $(SYMTAB_SRC): $(ROMFS_IMG) - $(Q) $(FILESYSTEM_DIR)$(DELIM)mksymtab.sh $(ROMFS_DIR) >$@ + $(Q) $(FILESYSTEM_DIR)$(DELIM)mksymtab.sh $(ROMFS_DIR) >$@_tmp + $(Q) mv $@_tmp $@ # Clean each subdirectory