You can disable the requirement of a hosted environment for C++ and use the freestanding environment via a configure option:
--disable-hosted-libstdcxx This leads to build errors. The configure command line was: "$source_dir/configure" \ "--prefix=/opt/rtems-4.10" \ "--target=arm-rtems4.10" \ --verbose \ --enable-serial-configure \ --with-gnu-as \ --with-gnu-ld \ --with-newlib \ --disable-libstdcxx-pch \ --disable-nls \ --without-included-gettext \ --disable-win32-registry \ --enable-version-specific-runtime-libs \ --enable-threads \ --enable-newlib-io-c99-formats \ --enable-languages=c,c++ \ --disable-hosted-libstdcxx The first observation is that the build looked successful (no errors from make), but a $ find -name libstdc++.a reveals that no such library exists in the build tree. Now lets try this $ cd arm-rtems4.10/libstdc++-v3/src $ make and we have a compile error. Output from $ make -i follows. -- Summary: C++ in freestanding environment Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sebastian dot huber at embedded-brains dot de http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43865