diff options
author | Chris Johns <chrisj@rtems.org> | 2013-02-20 16:39:41 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2013-02-20 16:39:41 +1100 |
commit | 4f5321fa65f0903589fc76a543b6c17381bd4b21 (patch) | |
tree | efc7962df6cfbc8a724f4cc70531d15c60b65fa1 /source-builder/config/gcc-4.8-1.cfg | |
parent | Fix the path handling of nesting build sets. (diff) | |
download | rtems-source-builder-4f5321fa65f0903589fc76a543b6c17381bd4b21.tar.bz2 |
Fix support for GCC being build as C++.
Diffstat (limited to 'source-builder/config/gcc-4.8-1.cfg')
-rw-r--r-- | source-builder/config/gcc-4.8-1.cfg | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source-builder/config/gcc-4.8-1.cfg b/source-builder/config/gcc-4.8-1.cfg index f81cbf7..02689db 100644 --- a/source-builder/config/gcc-4.8-1.cfg +++ b/source-builder/config/gcc-4.8-1.cfg @@ -143,10 +143,13 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n) %endif %if "%{_build}" != "%{_host}" CFLAGS_FOR_BUILD="-g -O2 -Wall" \ + CXXFLAGS_FOR_BUILD="-g -O2 -Wall" \ CC="%{_host}-gcc ${SB_OPT_FLAGS}" \ + CXX="%{_host}-g++ ${SB_OPT_FLAGS}" \ %else # gcc is not ready to be compiled with -std=gnu99 CC=$(echo "%{__cc} ${SB_OPT_FLAGS}" | sed -e 's,-std=gnu99 ,,') \ + CXX=$(echo "%{__cxx} ${SB_OPT_FLAGS}" | sed -e 's,-std=gnu99 ,,') \ %endif ../gcc-%{gcc_version}/configure \ --prefix=%{_prefix} \ |