Disable C++ on M32C. Fix target to _target bug.

This commit is contained in:
Chris Johns
2012-11-07 05:10:39 +11:00
parent 62f77ac635
commit 7760706414

View File

@@ -19,15 +19,29 @@
# AVR C++ does not work.
# configure: error: unable to detect exception model
#
%if %{target} == avr-rtems4.10
%if %{_target} == avr-rtems4.10
%define enable_cxx 0
%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
#
Patch0: gcc-core-4.4.7-rtems4.10-20120314.diff
%if %{enable_cxx}
Patch1: gcc-g++-4.4.7-rtems4.10-20120314.diff
%endif
Patch10: newlib-1.18.0-rtems4.10-20110518.diff
#