From cd1d27492835692477c2869c473dcd86bb820a74 Mon Sep 17 00:00:00 2001 From: rfm Date: Wed, 8 Sep 2010 09:12:13 +0000 Subject: [PATCH] Remove usage of -march=native since it doesn't work with most compilers, and also causes problems with builds on server farms where the build machine is not the machine the code will run on. --- GCKit/GNUmakefile | 2 +- GNUmakefile | 2 +- toydispatch/GNUmakefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/GCKit/GNUmakefile b/GCKit/GNUmakefile index cb55379..8361369 100644 --- a/GCKit/GNUmakefile +++ b/GCKit/GNUmakefile @@ -22,7 +22,7 @@ GCKit_HEADER_FILES = \ GCKit_LIBRARIES_DEPEND_UPON += -lpthread -GCKit_OBJCFLAGS += -Werror -std=c99 -march=native -fno-inline +GCKit_OBJCFLAGS += -Werror -std=c99 -fno-inline include $(GNUSTEP_MAKEFILES)/library.make include $(GNUSTEP_MAKEFILES)/tool.make diff --git a/GNUmakefile b/GNUmakefile index ea3da8c..2e5ccce 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -62,7 +62,7 @@ libobjc_CPPFLAGS += -D__OBJC_RUNTIME_INTERNAL__=1 -D_XOPEN_SOURCE=500 # Note to Riccardo. Please do not 'fix' C99isms in this. The new ABI is only # useful on compilers that support C99 (currently only clang), so there is no # benefit from supporting platforms with no C99 compiler. -libobjc_CFLAGS += -std=c99 -g -march=native -fexceptions -fno-inline +libobjc_CFLAGS += -std=c99 -g -fexceptions -fno-inline libobjc_OBJCFLAGS += $(libobjc_CFLAGS) libobjc_LDFLAGS += -g libobjc_LIB_DIRS += -L toydispatch/obj diff --git a/toydispatch/GNUmakefile b/toydispatch/GNUmakefile index 916fba9..2f5fcc4 100644 --- a/toydispatch/GNUmakefile +++ b/toydispatch/GNUmakefile @@ -13,6 +13,6 @@ toydispatch_HEADER_FILES = \ toydispatch_LIBRARIES_DEPEND_UPON += -lpthread -toydispatch_CFLAGS += -Werror -std=c99 -march=native +toydispatch_CFLAGS += -Werror -std=c99 include $(GNUSTEP_MAKEFILES)/library.make