pike.git / src / Makefile.in

version» Context lines:

pike.git/src/Makefile.in: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.   @SET_MAKE@      # Don't change this line. Define EXTRALIBS before this line if you   # wish to add any libraries.   LIBS=@LIBS@ $(EXTRALIBS)      # This is normall the install program in the source directory
pike.git/src/Makefile.in:300:         # Several optimizers have problems with interpret.c   # First try compiling with optimization and if that doesn't work, without.   # GCC dumps core on some files @ OSF1   # This kluge should work around that...   # FIXME: Make this a configure option   .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      #   # Please note that this must be accompanied by a dependency rule as   # The .c file will not be created in the SOURCE directory otherwise.   # -Hubbe   #   .cmod.c:    ./precompile.sh precompile.pike "$@" "$<"