Checks on --no-sse not quite right

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@39228 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Marcian Lytwyn 2015-12-10 17:47:30 +00:00
parent fcb63d3e64
commit 95c1b3e06f

View file

@ -600,12 +600,12 @@ INTERNAL_OBJCFLAGS = -fno-strict-aliasing
ifeq ($(CC),clang)
ifeq ($(wildcard /etc/redhat-release),"")
RH_RELEASE := $(shell cat /etc/redhat-release)
ifeq ($(findstring $(RH_RELEASE)),CentOS)
ifeq ($(findstring $(RH_RELEASE)),6.5)
ifeq ($(findstring CentOS,$(RH_RELEASE)),CentOS)
ifeq ($(findstring 6.5,$(RH_RELEASE)),6.5)
LINUXVER := $(subst ., ,$(subst -, ,$(shell uname -r)))
LINUXREV := $(word 4,$(LINUXVER))
ifeq ($(shell (test $(LINUXREV) -le 431 && echo 0)), 0)
INTERNAL_OBJCFLAGS = -mno-sse
INTERNAL_OBJCFLAGS += -mno-sse
endif
endif
endif