mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-23 22:33:28 +00:00
Clang on CentOS 6.5 Linux creates exe's that crash due to unaligned stack pointers
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@39223 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a96eab2ae3
commit
085746e549
1 changed files with 20 additions and 0 deletions
20
common.make
20
common.make
|
@ -594,8 +594,28 @@ endif
|
|||
# what can be done about it.
|
||||
INTERNAL_OBJCFLAGS = -fno-strict-aliasing
|
||||
|
||||
# Linux CentOS 6.5 i386 clang...
|
||||
# Clang inserts move aligned packed instructions (i.e. movaps,etc) assembly
|
||||
# code however stack is not aligned causing fault crashes...
|
||||
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)
|
||||
LINUXVER := $(subst ., ,$(subst -, ,$(shell uname -r)))
|
||||
LINUXREV := $(word 4,$(LINUXVER))
|
||||
ifeq ($(shell (test $(LINUXREV) -le 431 && echo 0)), 0)
|
||||
INTERNAL_OBJCFLAGS = -mno-sse
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
CFLAGS =
|
||||
|
||||
INTERNAL_LDFLAGS +=
|
||||
|
||||
# If the compiler supports native ObjC exceptions and the user wants us to
|
||||
# use them, turn them on!
|
||||
ifeq ($(USE_OBJC_EXCEPTIONS), yes)
|
||||
|
|
Loading…
Reference in a new issue