Branch: Tag:

2001-01-23

2001-01-23 22:24:53 by Martin Stjernholm <mast@lysator.liu.se>

Reverting a change that got in by mistake in revision 1.238.

Rev: src/Makefile.in:1.241

1:   # - # $Id: Makefile.in,v 1.240 2001/01/23 22:06:49 mast Exp $ + # $Id: Makefile.in,v 1.241 2001/01/23 22:24:53 mast Exp $   #      # This line is needed on some machines.
307:   .c.o:    @echo "Compiling $<" ;\    if $(CC) $(CFLAGS) -c $< -o $@ ; then : ; else \ -  echo "Compilation command was:" >&2;\ -  echo "$(CC) $(CFLAGS) -c $< -o $@" >&2 ;\ +  echo "WARNING: Compiler failure! Trying without optimization!" >&2;\ +  echo "echo $(CC) $(PREFLAGS) $(NOOPTFLAGS) -c $< -o $@" >&2 ;\ +  NO_ULIMIT=yes; \ +  export NO_ULIMIT; \ +  if $(CC) $(PREFLAGS) $(NOOPTFLAGS) -c $< -o $@ ; then : ; else \ +  err=$$?; \ +  if test "x$(FALLBACK_CC)" = "x"; then \ +  exit $$err; \ +  else \ +  echo "WARNING: Compiler failure! Trying fallback compiler!" >&2;\ +  echo "echo $(FALLBACK_CC) $(PREFLAGS) $(NOOPTFLAGS) -c $< -o $@" >&2 ;\ +  $(FALLBACK_CC) $(PREFLAGS) $(NOOPTFLAGS) -c $< -o $@ ;\ +  fi; \ +  fi; \    fi      #