Default gumstix configuration changed
[gumsense-br.git] / toolchain / gcc / Makefile.in
blob11733c95cd52d1342f974fef56a7e21f9dfa6adb
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
5 # the top level.
7 GCC_VERSION:=$(strip $(subst ",, $(BR2_GCC_VERSION)))
8 #"
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
17 endif
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
22 else
23 SOFT_FLOAT_CONFIG_OPTION:=--without-float
24 endif
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
28 endif
29 ifeq ($(findstring 4.1.,$(GCC_VERSION)),4.1.)
30 SOFT_FLOAT_CONFIG_OPTION:=--with-float=soft
31 endif
32 TARGET_SOFT_FLOAT:=-msoft-float
33 ARCH_FPU_SUFFIX:=_nofpu
34 else
35 SOFT_FLOAT_CONFIG_OPTION:=
36 TARGET_SOFT_FLOAT:=
37 ARCH_FPU_SUFFIX:=
38 endif
40 ifeq ($(strip $(BR2_PACKAGE_GCC_TARGET)),y)
41 TARGETS+=gcc_target
42 endif