Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Mein <mein@cs.umn.edu>2007-08-31 20:16:33 +0400
committerKent Mein <mein@cs.umn.edu>2007-08-31 20:16:33 +0400
commit6cd6bf7d806f7edf17ec341d197a5c54bbdcaa73 (patch)
treef3d3941c1279eb4e3d475593a836ef49bb463d55 /source/nan_compile.mk
parent6e91048bff139fba671a636e59ad99471658b3d8 (diff)
Updated the Makefiles removing some of the gcc specific stuff...
Basically I moved -funsigned-char -fno-strict-aliasing from individual Makefiles to nan_compile.mk defines for CFLAGS and CCFLAGS Kent
Diffstat (limited to 'source/nan_compile.mk')
-rw-r--r--source/nan_compile.mk36
1 files changed, 20 insertions, 16 deletions
diff --git a/source/nan_compile.mk b/source/nan_compile.mk
index d356d13be42..ae2717e3b5c 100644
--- a/source/nan_compile.mk
+++ b/source/nan_compile.mk
@@ -65,8 +65,8 @@ DBG_CCFLAGS += -g
ifeq ($(OS),beos)
CC = gcc
CCC = g++
- CFLAGS += -pipe -fPIC
- CFLAGS += -pipe -fPIC
+ CFLAGS += -pipe -fPIC -funsigned-char -fno-strict-aliasing
+ CCFLAGS += -pipe -fPIC -funsigned-char -fno-strict-aliasing
REL_CFLAGS += -O2
REL_CCFLAGS += -O2
NAN_DEPEND = true
@@ -81,11 +81,11 @@ ifeq ($(OS),darwin)
CC = gcc
CCC = g++
ifeq ($(CPU),powerpc)
- CFLAGS += -pipe -fPIC -ffast-math -mcpu=7450 -mtune=G5
- CCFLAGS += -pipe -fPIC
+ CFLAGS += -pipe -fPIC -ffast-math -mcpu=7450 -mtune=G5 -funsigned-char -fno-strict-aliasing
+ CCFLAGS += -pipe -fPIC -funsigned-char -fno-strict-aliasing
else
- CFLAGS += -pipe -fPIC -ffast-math -march=pentium-m
- CCFLAGS += -pipe -fPIC
+ CFLAGS += -pipe -fPIC -ffast-math -march=pentium-m -funsigned-char -fno-strict-aliasing
+ CCFLAGS += -pipe -fPIC -funsigned-char -fno-strict-aliasing
endif
REL_CFLAGS += -O2
REL_CCFLAGS += -O2
@@ -103,8 +103,8 @@ ifeq ($(OS),freebsd)
CCC = g++
JAVAC = javac
JAVAH = javah
- CFLAGS += -pipe -fPIC
- CCFLAGS += -pipe -fPIC
+ CFLAGS += -pipe -fPIC -funsigned-char -fno-strict-aliasing
+ CCFLAGS += -pipe -fPIC -funsigned-char -fno-strict-aliasing
REL_CFLAGS += -O2
REL_CCFLAGS += -O2
CPPFLAGS += -D_THREAD_SAFE
@@ -140,8 +140,8 @@ ifeq ($(OS),linux)
CC = gcc
CCC = g++
# CFLAGS += -pipe
- CFLAGS += -pipe -fPIC
- CCFLAGS += -pipe -fPIC
+ CFLAGS += -pipe -fPIC -funsigned-char -fno-strict-aliasing
+ CCFLAGS += -pipe -fPIC -funsigned-char -fno-strict-aliasing
# CCFLAGS += -pipe
REL_CFLAGS += -O2
REL_CCFLAGS += -O2
@@ -158,8 +158,8 @@ endif
ifeq ($(OS),openbsd)
CC = gcc
CCC = g++
- CFLAGS += -pipe -fPIC
- CCFLAGS += -pipe -fPIC
+ CFLAGS += -pipe -fPIC -funsigned-char -fno-strict-aliasing
+ CCFLAGS += -pipe -fPIC -funsigned-char -fno-strict-aliasing
REL_CFLAGS += -O2
REL_CCFLAGS += -O2
NAN_DEPEND = true
@@ -173,10 +173,14 @@ endif
ifeq ($(OS),solaris)
CC = gcc
CCC = g++
+# CC = cc
+# CCC = CC
JAVAC = javac
JAVAH = javah
- CFLAGS += -pipe -fPIC
- CCFLAGS += -pipe -fPIC
+ CFLAGS += -pipe -fPIC -funsigned-char -fno-strict-aliasing
+ CCFLAGS += -pipe -fPIC -funsigned-char -fno-strict-aliasing
+# CFLAGS += "-fast -xdepend -xarch=v8plus -xO3 -xlibmil -KPIC -DPIC -xchar=unsigned"
+# CCFLAGS += "-fast -xdepend -xarch=v8plus -xO3 -xlibmil -xlibmopt -features=tmplife -norunpath -KPIC -DPIC -xchar=unsigned"
REL_CFLAGS += -O1
REL_CCFLAGS += -O1
NAN_DEPEND = true
@@ -197,8 +201,8 @@ ifeq ($(OS),windows)
ifeq ($(FREE_WINDOWS),true)
CC = gcc
CCC = g++
- CFLAGS += -pipe -mno-cygwin -mwindows
- CCFLAGS += -pipe -mno-cygwin -mwindows
+ CFLAGS += -pipe -mno-cygwin -mwindows -funsigned-char -fno-strict-aliasing
+ CCFLAGS += -pipe -mno-cygwin -mwindows -funsigned-char -fno-strict-aliasing
CPPFLAGS += -DFREE_WINDOWS
REL_CFLAGS += -O2
REL_CCFLAGS += -O2