diff --git a/rtems/config/rtems-gcc-4.4.7-newlib-1.18.0-1.cfg b/rtems/config/rtems-gcc-4.4.7-newlib-1.18.0-1.cfg index aeb2a20..22ee2d8 100644 --- a/rtems/config/rtems-gcc-4.4.7-newlib-1.18.0-1.cfg +++ b/rtems/config/rtems-gcc-4.4.7-newlib-1.18.0-1.cfg @@ -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 #