Browse Source

Allow parallel building in libm

Peter S. Mazinger 20 years ago
parent
commit
8a03116fa2
1 changed files with 3 additions and 2 deletions
  1. 3 2
      libm/Makefile

+ 3 - 2
libm/Makefile

@@ -102,8 +102,9 @@ endif
 $(AR_LIB_NAME): $(OBJS) $(ARCH_OBJS)
 	$(INSTALL) -d $(TOPDIR)lib
 	$(RM) $(AR_LIB_NAME)
-	$(AR) $(ARFLAGS) $(AR_LIB_NAME) $(OBJS) && \
-		$(AR) $(ARFLAGS) $(AR_LIB_NAME) $(ARCH_OBJS)
+	$(AR) $(ARFLAGS) $(AR_LIB_NAME).tmp $(OBJS)
+	$(AR) $(ARFLAGS) $(AR_LIB_NAME).tmp $(ARCH_OBJS)
+	mv $(AR_LIB_NAME).tmp $(AR_LIB_NAME)
 
 $(SO_LIB_NAME): $(AR_LIB_NAME)
 	$(RM) $(TOPDIR)lib/$(SO_FULL_NAME) $(SO_LIB_NAME).$(MAJOR_VERSION) $(SO_LIB_NAME)