[PATCH 2/2] libtracefs: make the libtracefs.a gen more robust

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There apparently is a possibility (during an SMP compile) of ar getting
confused about what's going on with libtracefs.a, and throwing a hard to
track down error and truncating the file.  Making the rm operation a bit
 more atomic seems to alleviate this error

Signed-off-by: John 'Warthog9' Hawley (VMware) <warthog9@xxxxxxxxxxxxxx>
---
 scripts/utils.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/utils.mk b/scripts/utils.mk
index 32a9b3c..7a88b10 100644
--- a/scripts/utils.mk
+++ b/scripts/utils.mk
@@ -52,7 +52,7 @@ do_app_build =						\
 
 do_build_static_lib =				\
 	($(print_static_lib_build)		\
-	$(RM) $@;  $(AR) rcs $@ $^)
+	mv $@ $@.rm; $(RM) $@.rm;  $(AR) rcs $@ $^)
 
 do_compile_shared_library =			\
 	($(print_shared_lib_compile)		\
-- 
2.26.3




[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux