]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/configure.ac
Fix compilation of build/*.o when using C++.
authorDiego Novillo <dnovillo@google.com>
Thu, 31 May 2012 17:25:41 +0000 (13:25 -0400)
committerDiego Novillo <dnovillo@gcc.gnu.org>
Thu, 31 May 2012 17:25:41 +0000 (13:25 -0400)
commitbdd5dc28aa04c3bc6b10fe6bdd01ddbd59e689c7
treee88d1126cb49f12ae276830176979bf2a5075453
parent6f4185d7863f05abadb10550b26eb659a2b1eace
Fix compilation of build/*.o when using C++.

Found this while testing the C++ conversion for vec.[ch] on the
cxx-conversion branch.  We do not build the build/*.o files with g++,
so I was getting lots of syntax errors while compiling build/vec.o.

2012-05-31   Diego Novillo  <dnovillo@google.com>

       * configure.ac (CXX_FOR_BUILD): Define and substitute.
       (BUILD_CXXFLAGS): Define and substitute.
       * Makefile.in (BUILD_CXXFLAGS): Define.
       (CXX_FOR_BUILD): Define.
       (COMPILER_FOR_BUILD): Set to CXX_FOR_BUILD if building with C++.
       (LINKER_FOR_BUILD): Likewise.
       (BUILD_COMPILERFLAGS): Set to BUILD_CXXFLAGS if building with C++.
       (BUILD_LINKERFLAGS): Likewise.
       * configure: Regenerate.

From-SVN: r188069
gcc/ChangeLog
gcc/Makefile.in
gcc/configure
gcc/configure.ac