1 # gcc has a bunch of options that need to be shared with
2 # both gcc-uclibc-2.95.mk and gcc-uclibc-3.x.mk, and are
3 # use by other packages... So include them in this file
4 # and arrange to include it soon after invoking make from
7 GCC_VERSION
:=$(strip $(subst ",, $(BR2_GCC_VERSION)))
9 TARGET_OPTIMIZATION
:=$(strip $(subst ",, $(BR2_TARGET_OPTIMIZATION)))
11 EXTRA_GCC_CONFIG_OPTIONS
:=$(strip $(subst ",, $(BR2_EXTRA_GCC_CONFIG_OPTIONS)))
15 ifeq ($(strip $(BR2_GCC_USE_SJLJ_EXCEPTIONS
)),y
)
16 GCC_USE_SJLJ_EXCEPTIONS
:=--enable-sjlj-exceptions
18 ifeq ($(BR2_SOFT_FLOAT
),y
)
19 # gcc 3.4.x soft float configuration is different than previous versions.
20 ifeq ($(findstring 3.4.
,$(GCC_VERSION
)),3.4.
)
21 SOFT_FLOAT_CONFIG_OPTION
:=--with-float
=soft
23 SOFT_FLOAT_CONFIG_OPTION
:=--without-float
25 # again... there must be a better way
26 ifeq ($(findstring 4.0.
,$(GCC_VERSION
)),4.0.
)
27 SOFT_FLOAT_CONFIG_OPTION
:=--with-float
=soft
29 ifeq ($(findstring 4.1.
,$(GCC_VERSION
)),4.1.
)
30 SOFT_FLOAT_CONFIG_OPTION
:=--with-float
=soft
32 TARGET_SOFT_FLOAT
:=-msoft-float
33 ARCH_FPU_SUFFIX
:=_nofpu
35 SOFT_FLOAT_CONFIG_OPTION
:=
40 ifeq ($(strip $(BR2_PACKAGE_GCC_TARGET
)),y
)