mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
Disable C++ on M32C. Fix target to _target bug.
This commit is contained in:
@@ -19,15 +19,29 @@
|
|||||||
# AVR C++ does not work.
|
# AVR C++ does not work.
|
||||||
# configure: error: unable to detect exception model
|
# configure: error: unable to detect exception model
|
||||||
#
|
#
|
||||||
%if %{target} == avr-rtems4.10
|
%if %{_target} == avr-rtems4.10
|
||||||
%define enable_cxx 0
|
%define enable_cxx 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
#
|
||||||
|
# M32C C++ does not work.
|
||||||
|
# gcc-4.4.7/libstdc++-v3/src/mt_allocator.cc:76: error: cast from 'void*' to 'size_t' loses precision
|
||||||
|
#
|
||||||
|
%if %{_target} == m32c-rtems4.10
|
||||||
|
%define enable_cxx 0
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%ifn %{defined enable_cxx}
|
||||||
|
%define enable_cxx 1
|
||||||
|
%endif
|
||||||
|
|
||||||
#
|
#
|
||||||
# The RTEMS 4.10 patches
|
# The RTEMS 4.10 patches
|
||||||
#
|
#
|
||||||
Patch0: gcc-core-4.4.7-rtems4.10-20120314.diff
|
Patch0: gcc-core-4.4.7-rtems4.10-20120314.diff
|
||||||
|
%if %{enable_cxx}
|
||||||
Patch1: gcc-g++-4.4.7-rtems4.10-20120314.diff
|
Patch1: gcc-g++-4.4.7-rtems4.10-20120314.diff
|
||||||
|
%endif
|
||||||
Patch10: newlib-1.18.0-rtems4.10-20110518.diff
|
Patch10: newlib-1.18.0-rtems4.10-20110518.diff
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Reference in New Issue
Block a user