summaryrefslogtreecommitdiffstats
path: root/rtems/config/tools/rtems-gcc-4.7.2-newlib-1.20.0-1.cfg
blob: 167d7c5c6f353a195f88a8408868a4cded7faa45 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#
# GCC 4.7.2., Newlib 1.20.0
#

#
# AVR C++ does not work.
#   configure: error: unable to detect exception model
#
%if %{_target} == avr-rtems4.11
%define enable_cxx 0
%endif

#
# M32C C++ does not work.
#   gcc-4.7.2/libstdc++-v3/src/mt_allocator.cc:76: error: cast from 'void*' to 'size_t' loses precision
#
%if %{_target} == m32c-rtems4.11
%define enable_cxx 0
%endif

#
# If arm-rtems4.11 add --enable-obsolete.
#
%if %{_target} == arm-rtems4.11
%define enable_obsolete 1
%else
%define enable_obsolete 0
%endif

%include %{_configdir}/checks.cfg
%include %{_configdir}/base.cfg

%define gcc_version    4.7.2
%define newlib_version 1.20.0
%define mpfr_version   3.0.1
%define mpc_version    0.8.2
%define gmp_version    5.0.5

%define with_threads 1
%define with_plugin  0
%define with_iconv   1

#
# The RTEMS 4.11 patches
#
%patch add gcc %{rtems_gcc_patches}/gcc-4.7.2-rtems4.11-20121026.diff
%patch add newlib %{rtems_newlib_patches}/newlib-1.20.0-rtems4.11-20121011.diff

#
# The gcc/newlib build instructions. We use 4.7 Release 1.
#
%include %{_configdir}/gcc-4.7-1.cfg