summaryrefslogtreecommitdiff
path: root/solenv/inc
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2012-04-22 22:44:08 +0300
committerTor Lillqvist <tml@iki.fi>2012-04-23 10:19:17 +0300
commitc29b6b2a065bbf7ade2d6b62dfd1c0245318f355 (patch)
treec29b06f2a96900221318d86bdb50aad1988886b3 /solenv/inc
parentd142091d4c98672c49f57be23f90e5ec8445e754 (diff)
No -malign-natural in Clang, not Apple's at least
Diffstat (limited to 'solenv/inc')
-rw-r--r--solenv/inc/unxmacx.mk12
1 files changed, 9 insertions, 3 deletions
diff --git a/solenv/inc/unxmacx.mk b/solenv/inc/unxmacx.mk
index 1ca6a8259267..1a7c891cb43c 100644
--- a/solenv/inc/unxmacx.mk
+++ b/solenv/inc/unxmacx.mk
@@ -88,7 +88,7 @@ CC*=gcc
objc*=$(CC)
objcpp*=$(CXX)
-CFLAGS=-fsigned-char -fmessage-length=0 -malign-natural -c $(EXTRA_CFLAGS)
+CFLAGS=-fsigned-char -fmessage-length=0 -c $(EXTRA_CFLAGS)
.IF "$(DISABLE_DEPRECATION_WARNING)" == "TRUE"
CFLAGS+=-Wno-deprecated-declarations
@@ -97,7 +97,10 @@ CFLAGS+=-Wno-deprecated-declarations
# Compilation flags
# ---------------------------------
# Normal C compilation flags
-CFLAGSCC=-pipe -fsigned-char -malign-natural $(ARCH_FLAGS)
+CFLAGSCC=-pipe -fsigned-char $(ARCH_FLAGS)
+.IF "$(COM_GCC_IS_CLANG)" != "TRUE"
+CFLAGSCC+=-malign-natural
+.ENDIF
# Normal Objective C compilation flags
#OBJCFLAGS=-no-precomp
@@ -117,7 +120,10 @@ CFLAGSEXCEPTIONS+=-fno-enforce-eh-specs
CFLAGS_NO_EXCEPTIONS=-fno-exceptions
# Normal C++ compilation flags
-CFLAGSCXX=-pipe -malign-natural -fsigned-char $(ARCH_FLAGS) -Wno-ctor-dtor-privacy
+CFLAGSCXX=-pipe -fsigned-char $(ARCH_FLAGS) -Wno-ctor-dtor-privacy
+.IF "$(COM_GCC_IS_CLANG)" != "TRUE"
+CFLAGSCXX+=-malign-natural
+.ENDIF
.IF "$(HAVE_GCC_NO_LONG-DOUBLE)" == "TRUE"
CFLAGSCXX+= -Wno-long-double
.ENDIF