aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJohn 'Warthog9' Hawley (VMware) <warthog9@eaglescrag.net>2021-08-20 16:50:43 -0700
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2021-10-12 16:17:31 -0400
commit550d8358bc7535c1d59cfa5caec773f2fdab1eb8 (patch)
tree1e5fe50ca4059304829ac55d7055ee81ae7555cc /scripts
parent567fc8b8d4d5d8c536e82525e69af82d13b4e181 (diff)
downloadlibtracefs-550d8358bc7535c1d59cfa5caec773f2fdab1eb8.tar.gz
libtracefs: make the libtracefs.a gen more robust
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 Link: https://lore.kernel.org/linux-trace-devel/20210820235043.1450620-3-warthog9@eaglescrag.net Signed-off-by: John 'Warthog9' Hawley (VMware) <warthog9@eaglescrag.net> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/utils.mk2
1 files changed, 1 insertions, 1 deletions
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) \