Clean up the per target C/C++ handling.

This commit is contained in:
Chris Johns 2013-03-05 14:30:31 +11:00
parent 6f3633361c
commit b521098ad6
6 changed files with 20 additions and 48 deletions

View File

@ -7,7 +7,7 @@
4.11/rtems-avr 4.11/rtems-avr
4.11/rtems-bfin 4.11/rtems-bfin
4.11/rtems-i386 4.11/rtems-i386
4.11/rtems-lm32 # broken 4.11/rtems-lm32
4.11/rtems-m32c 4.11/rtems-m32c
4.11/rtems-m32r 4.11/rtems-m32r
4.11/rtems-m68k 4.11/rtems-m68k

View File

@ -11,6 +11,11 @@
# #
%include rtems-4.11-base.bset %include rtems-4.11-base.bset
#
# Need to add this option to build.
#
%define enable_obsolete 1
# #
# Patch to enable EABI # Patch to enable EABI
# #

View File

@ -11,6 +11,12 @@
# #
%include rtems-4.11-base.bset %include rtems-4.11-base.bset
#
# Disable building a C++ compiler.
# configure: error: unable to detect exception model
#
%define enable_cxx 0
# #
# Tools configuration. # Tools configuration.
# #

View File

@ -11,6 +11,13 @@
# #
%include rtems-4.11-base.bset %include rtems-4.11-base.bset
#
# Disable building a C++ compiler.
#
# gcc-4.7.2/libstdc++-v3/src/mt_allocator.cc:76: error: cast from 'void*' to 'size_t' loses precision
#
%define enable_cxx 0
# #
# Tools configuration. # Tools configuration.
# #

View File

@ -15,32 +15,11 @@
%define with_plugin 0 %define with_plugin 0
%define with_iconv 1 %define with_iconv 1
#
# 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
%ifn %{defined enable_cxx} %ifn %{defined enable_cxx}
%define enable_cxx 1 %define enable_cxx 1
%endif %endif
# %ifn %{defined enable_obsolete}
# If arm-rtems4.11 add --enable-obsolete.
#
%if %{_target} == arm-rtems4.11
%define enable_obsolete 1
%else
%define enable_obsolete 0 %define enable_obsolete 0
%endif %endif

View File

@ -15,35 +15,10 @@
%define with_plugin 0 %define with_plugin 0
%define with_iconv 1 %define with_iconv 1
#
# 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
%ifn %{defined enable_cxx} %ifn %{defined enable_cxx}
%define enable_cxx 1 %define enable_cxx 1
%endif %endif
#
# If arm-rtems4.11 add --enable-obsolete.
#
%if %{_target} == arm-rtems4.11
%define enable_obsolete 1
%else
%define enable_obsolete 0
%endif
# #
# The RTEMS 4.11 patches # The RTEMS 4.11 patches
# #