summaryrefslogtreecommitdiffstats
path: root/Modules/Makefile.pre.in
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/Makefile.pre.in')
-rw-r--r--Modules/Makefile.pre.in18
1 files changed, 12 insertions, 6 deletions
diff --git a/Modules/Makefile.pre.in b/Modules/Makefile.pre.in
index ca728e0..4d306e7 100644
--- a/Modules/Makefile.pre.in
+++ b/Modules/Makefile.pre.in
@@ -110,12 +110,10 @@ all: $(OBJS)
# 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
+ -if test -f hassignal; \
+ then echo removing sigcheck.o intrcheck.o; \
+ $(AR) d $(LIBRARY) sigcheck.o intrcheck.o 2>/dev/null; \
+ else echo leaving sigcheck.o intrcheck.o in; fi
$(AR) cr $(LIBRARY) $(OBJS)
touch add2lib
@@ -152,6 +150,14 @@ config.c Makefile:
-rm -f $(LIBRARY)
$(SHELL) $(MAKESETUP) Setup.thread Setup.local Setup
+hassignal:
+ -rm -f hassignal
+ -for i in $(OBJS); do \
+ if test "$$i" = "signalmodule.o"; then \
+ echo yes >hassignal; break; \
+ fi; \
+ done
+
Setup:
cp $(srcdir)/Setup.in Setup