version 1.67, 2013/04/19 14:06:57
|
version 1.68, 2013/05/07 09:06:02
|
|
|
ifdef PEGASUS_USE_DEBUG_BUILD_OPTIONS | ifdef PEGASUS_USE_DEBUG_BUILD_OPTIONS |
FLAGS += -g | FLAGS += -g |
else | else |
FLAGS += -s |
|
# | # |
# The -fno-enforce-eh-specs is not available in 2.9.5 and it probably | # The -fno-enforce-eh-specs is not available in 2.9.5 and it probably |
# appeared in the 3.0 series of compilers. | # appeared in the 3.0 series of compilers. |
# | # |
ifeq ($(COMPILER), gnu) | ifeq ($(COMPILER), gnu) |
|
FLAGS += -s |
ifeq ($(shell expr $(GCC_VERSION) '>=' 3.0), 1) | ifeq ($(shell expr $(GCC_VERSION) '>=' 3.0), 1) |
EXTRA_CXX_FLAGS += -fno-enforce-eh-specs | EXTRA_CXX_FLAGS += -fno-enforce-eh-specs |
endif | endif |
else |
|
EXTRA_CXX_FLAGS += -fno-enforce-eh-specs |
|
endif | endif |
| |
ifdef PEGASUS_OPTIMIZE_FOR_SIZE | ifdef PEGASUS_OPTIMIZE_FOR_SIZE |
|
ifeq ($(COMPILER), gnu) |
FLAGS += -Os | FLAGS += -Os |
else | else |
|
FLAGS += -Oz |
|
endif |
|
else |
FLAGS += -O2 | FLAGS += -O2 |
endif | endif |
endif | endif |