mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
Clean up the per target C/C++ handling.
This commit is contained in:
parent
6f3633361c
commit
b521098ad6
@ -7,7 +7,7 @@
|
||||
4.11/rtems-avr
|
||||
4.11/rtems-bfin
|
||||
4.11/rtems-i386
|
||||
4.11/rtems-lm32
|
||||
# broken 4.11/rtems-lm32
|
||||
4.11/rtems-m32c
|
||||
4.11/rtems-m32r
|
||||
4.11/rtems-m68k
|
||||
|
@ -11,6 +11,11 @@
|
||||
#
|
||||
%include rtems-4.11-base.bset
|
||||
|
||||
#
|
||||
# Need to add this option to build.
|
||||
#
|
||||
%define enable_obsolete 1
|
||||
|
||||
#
|
||||
# Patch to enable EABI
|
||||
#
|
||||
|
@ -11,6 +11,12 @@
|
||||
#
|
||||
%include rtems-4.11-base.bset
|
||||
|
||||
#
|
||||
# Disable building a C++ compiler.
|
||||
# configure: error: unable to detect exception model
|
||||
#
|
||||
%define enable_cxx 0
|
||||
|
||||
#
|
||||
# Tools configuration.
|
||||
#
|
||||
|
@ -11,6 +11,13 @@
|
||||
#
|
||||
%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.
|
||||
#
|
||||
|
@ -15,32 +15,11 @@
|
||||
%define with_plugin 0
|
||||
%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}
|
||||
%define enable_cxx 1
|
||||
%endif
|
||||
|
||||
#
|
||||
# If arm-rtems4.11 add --enable-obsolete.
|
||||
#
|
||||
%if %{_target} == arm-rtems4.11
|
||||
%define enable_obsolete 1
|
||||
%else
|
||||
%ifn %{defined enable_obsolete}
|
||||
%define enable_obsolete 0
|
||||
%endif
|
||||
|
||||
|
@ -15,35 +15,10 @@
|
||||
%define with_plugin 0
|
||||
%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}
|
||||
%define enable_cxx 1
|
||||
%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
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user