summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/main.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/main.mk b/source4/main.mk
index 73c242ff50..1463438890 100644
--- a/source4/main.mk
+++ b/source4/main.mk
@@ -340,7 +340,10 @@ include/includes.d: include/includes.h
$(CC_CHECKER) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) $(PICFLAG) -c $< -o $@; \
fi
@echo "Compiling $<"
- @$(CC) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) $(PICFLAG) -c $< -o $@
+ @$(CC) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) $(PICFLAG) -c $< -o $@ && exit 0;\
+ echo "The following command failed:" 1>&2;\
+ echo "$(CC) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) $(PICFLAG) -c $< -o $@" 1>&2;\
+ $(CC) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) $(PICFLAG) -c $< -o $@ >/dev/null 2>&1
.h.h.gch:
@echo "Precompiling $<"