Kaydet (Commit) dff40cc6 authored tarafından Caolán McNamara's avatar Caolán McNamara

-matom only available with gcc 4.5.0 or above

üst 79fd100c
......@@ -110,13 +110,13 @@ CFLAGSPROF=
# Compiler flags for debugging
CFLAGSDEBUG=-g
CFLAGSDBGUTIL=
# Compiler flags for enabling optimizations
.IF "$(PRODUCT)"!=""
CFLAGSOPT=$(CDEFAULTOPT) # optimizing for products
GCCNUMVERSION_CMD=-dumpversion $(PIPEERROR) $(AWK) -v num=true -f $(SOLARENV)/bin/getcompver.awk
GCCNUMVER:=$(shell @-$(CXX) $(GCCNUMVERSION_CMD))
# Compiler flags for enabling optimizations
.IF "$(PRODUCT)"!=""
CFLAGSOPT=$(CDEFAULTOPT) # optimizing for products
.IF "$(USE_SYSTEM_STL)"!="YES" || "$(GCCNUMVER)" <= "000400050000"
#STLPort headers are full of aliasing warnings and
#At least SLED 10.2 gcc 4.3 overly agressively optimizes
......@@ -127,6 +127,7 @@ CFLAGSOPT+=-fno-strict-aliasing
.ELSE # "$(PRODUCT)"!=""
CFLAGSOPT= # no optimizing for non products
.ENDIF # "$(PRODUCT)"!=""
# Compiler flags for disabling optimizations
CFLAGSNOOPT=-O0
# Compiler flags for describing the output path
......
......@@ -27,7 +27,11 @@
# mk file for Unix Linux Intel (X86) using GCC, please make generic modifications to unxlng.mk
CDEFAULTOPT=-Os
.IF "$(GCCNUMVER)" >= "000400050000"
ARCH_FLAGS*=-mtune=atom
.ELSE
ARCH_FLAGS*=-mtune=pentiumpro
.ENDIF
.INCLUDE : unxlng.mk
CDEFS+=-DX86
DLLPOST=.so
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment