2005-02-10 04:06:39 +01:00
|
|
|
# gcc has a bunch of options that need to be shared with
|
|
|
|
# both gcc-uclibc-2.95.mk and gcc-uclibc-3.x.mk, and are
|
|
|
|
# use by other packages... So include them in this file
|
|
|
|
# and arrange to include it soon after invoking make from
|
|
|
|
# the top level.
|
|
|
|
|
2004-10-09 03:06:03 +02:00
|
|
|
GCC_VERSION:=$(strip $(subst ",, $(BR2_GCC_VERSION)))
|
|
|
|
#"
|
|
|
|
TARGET_OPTIMIZATION:=$(strip $(subst ",, $(BR2_TARGET_OPTIMIZATION)))
|
2005-01-23 11:28:04 +01:00
|
|
|
#"
|
|
|
|
EXTRA_GCC_CONFIG_OPTIONS:=$(strip $(subst ",, $(BR2_EXTRA_GCC_CONFIG_OPTIONS)))
|
|
|
|
#"
|
2006-04-13 07:50:01 +02:00
|
|
|
ifeq ($(strip $(subst ",, $(BR2_GCC_IS_SNAP))),y)
|
|
|
|
GCC_SNAP_DATE:=$(strip $(subst ",, $(BR2_GCC_SNAP_DATE)))
|
|
|
|
else
|
|
|
|
GCC_SNAP_DATE:=
|
|
|
|
endif
|
2004-10-09 03:06:03 +02:00
|
|
|
|
|
|
|
|
2005-07-19 01:34:20 +02:00
|
|
|
ifeq ($(strip $(BR2_GCC_USE_SJLJ_EXCEPTIONS)),y)
|
|
|
|
GCC_USE_SJLJ_EXCEPTIONS:=--enable-sjlj-exceptions
|
|
|
|
endif
|
2004-10-09 23:28:56 +02:00
|
|
|
ifeq ($(BR2_SOFT_FLOAT),y)
|
2004-10-09 03:06:03 +02:00
|
|
|
# gcc 3.4.x soft float configuration is different than previous versions.
|
|
|
|
ifeq ($(findstring 3.4.,$(GCC_VERSION)),3.4.)
|
|
|
|
SOFT_FLOAT_CONFIG_OPTION:=--with-float=soft
|
|
|
|
else
|
|
|
|
SOFT_FLOAT_CONFIG_OPTION:=--without-float
|
|
|
|
endif
|
2005-05-01 00:59:05 +02:00
|
|
|
# again... there must be a better way
|
|
|
|
ifeq ($(findstring 4.0.,$(GCC_VERSION)),4.0.)
|
|
|
|
SOFT_FLOAT_CONFIG_OPTION:=--with-float=soft
|
|
|
|
endif
|
|
|
|
ifeq ($(findstring 4.1.,$(GCC_VERSION)),4.1.)
|
|
|
|
SOFT_FLOAT_CONFIG_OPTION:=--with-float=soft
|
|
|
|
endif
|
2004-10-09 03:06:03 +02:00
|
|
|
TARGET_SOFT_FLOAT:=-msoft-float
|
|
|
|
ARCH_FPU_SUFFIX:=_nofpu
|
|
|
|
else
|
|
|
|
SOFT_FLOAT_CONFIG_OPTION:=
|
|
|
|
TARGET_SOFT_FLOAT:=
|
|
|
|
ARCH_FPU_SUFFIX:=
|
|
|
|
endif
|
|
|
|
|
2004-10-09 08:13:40 +02:00
|
|
|
ifeq ($(strip $(BR2_PACKAGE_GCC_TARGET)),y)
|
|
|
|
TARGETS+=gcc_target
|
|
|
|
endif
|