From 75ba4267f90c3ac117e39fe104b2ba060919c40c Mon Sep 17 00:00:00 2001 From: Mike Nolta Date: Wed, 31 Oct 2012 17:33:04 -0400 Subject: [PATCH] fix build failure due to gcc44 inline bug (see julia issue #1480) --- Make.inc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Make.inc b/Make.inc index 5bd7c55..1a23747 100644 --- a/Make.inc +++ b/Make.inc @@ -9,15 +9,17 @@ FFLAGS = -O3 USEGCC = 1 USECLANG = 0 +CFLAGS= -std=c99 -Wall -O3 -I$(OPENLIBM_HOME) -I$(OPENLIBM_HOME)/include -I$(OPENLIBM_HOME)/ld80 -I$(OPENLIBM_HOME)/$(ARCH) -I$(OPENLIBM_HOME)/src -DASSEMBLER -D__BSD_VISIBLE -Wno-implicit-function-declaration + ifeq ($(USECLANG),1) USEGCC = 0 CC = clang -CFLAGS= -std=c99 -Wall -O3 -I$(OPENLIBM_HOME) -I$(OPENLIBM_HOME)/include -I$(OPENLIBM_HOME)/ld80 -I$(OPENLIBM_HOME)/$(ARCH) -I$(OPENLIBM_HOME)/src -DASSEMBLER -D__BSD_VISIBLE -Wno-implicit-function-declaration -fno-builtin +CFLAGS += -fno-builtin endif ifeq ($(USEGCC),1) CC = gcc -CFLAGS= -std=c99 -Wall -O3 -I$(OPENLIBM_HOME) -I$(OPENLIBM_HOME)/include -I$(OPENLIBM_HOME)/ld80 -I$(OPENLIBM_HOME)/$(ARCH) -I$(OPENLIBM_HOME)/src -DASSEMBLER -D__BSD_VISIBLE -Wno-implicit-function-declaration +CFLAGS += -fno-gnu89-inline endif default: all @@ -29,7 +31,7 @@ default: all $(FC) $(FFLAGS) -c $< -o $@ %.S.o: %.S - $(CC) $(filter -f% -m% -B% -I% -D%,$(CFLAGS)) -c $< -o $@ + $(CC) $(filter -m% -B% -I% -D%,$(CFLAGS)) -c $< -o $@ clean: rm -fr *.o *.c.o *.S.o *~ test-double test-float test-double-system test-float-system *.dSYM