]> granicus.if.org Git - python/commitdiff
Must remove conflicting files from archive
authorGuido van Rossum <guido@python.org>
Thu, 21 Aug 1997 02:30:20 +0000 (02:30 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 21 Aug 1997 02:30:20 +0000 (02:30 +0000)
*before* adding signalmodule.o, because some ar programs
are too smart for us...

Modules/Makefile.pre.in

index 42e6601a6f7aabf6012150d8a7c0b998d8f3df1f..a187b7b2c3056b1b33c0e854a42dfc789792f26b 100644 (file)
@@ -114,11 +114,13 @@ $(ASHAREDMODULE)$(SO): $(ASHAREDMODULESOBS)
 # To deal with the conflict between signalmodule.o and
 # sigcheck.o+intrcheck.o, we remove the latter two if we have the former.
 add2lib:       $(OBJS)
+               -for i in $(OBJS); do \
+                    if test "$$i" = "signalmodule.o"; then \
+                       ar d $(LIBRARY) sigcheck.o intrcheck.o 2>/dev/null; \
+                       break; \
+                    fi; \
+               done
                $(AR) cr $(LIBRARY) $(OBJS)
-               -if ar x $(LIBRARY) signalmodule.o 2>/dev/null; \
-               then \
-                 ar d $(LIBRARY) sigcheck.o intrcheck.o 2>/dev/null; true; \
-               else true; fi
                touch add2lib
 
 # This target is used by the master Makefile to link the final binary.