Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bae6523

Browse files
committed
Must remove conflicting files from archive
*before* adding signalmodule.o, because some ar programs are too smart for us...
1 parent 08157f8 commit bae6523

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

Modules/Makefile.pre.in

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,13 @@ $(ASHAREDMODULE)$(SO): $(ASHAREDMODULESOBS)
114114
# To deal with the conflict between signalmodule.o and
115115
# sigcheck.o+intrcheck.o, we remove the latter two if we have the former.
116116
add2lib: $(OBJS)
117+
-for i in $(OBJS); do \
118+
if test "$$i" = "signalmodule.o"; then \
119+
ar d $(LIBRARY) sigcheck.o intrcheck.o 2>/dev/null; \
120+
break; \
121+
fi; \
122+
done
117123
$(AR) cr $(LIBRARY) $(OBJS)
118-
-if ar x $(LIBRARY) signalmodule.o 2>/dev/null; \
119-
then \
120-
ar d $(LIBRARY) sigcheck.o intrcheck.o 2>/dev/null; true; \
121-
else true; fi
122124
touch add2lib
123125

124126
# This target is used by the master Makefile to link the final binary.

0 commit comments

Comments
 (0)