Jakub Jelinek <ja...@redhat.com> writes: > On Tue, Dec 11, 2012 at 02:00:18PM -0800, H.J. Lu wrote: >> 2012-12-11 H.J. Lu <hongjiu...@intel.com> >> >> * libstdc++-raw-cxx.m4 (GCC_LIBSTDCXX_RAW_CXX_FLAGS): Also >> AC_SUBST LIBSTDCXX_RAW_CXX_LDFLAGS. > >> --- a/config/libstdc++-raw-cxx.m4 >> +++ b/config/libstdc++-raw-cxx.m4 >> @@ -14,13 +14,17 @@ >> # along with GCC; see the file COPYING3. If not see >> # <http://www.gnu.org/licenses/>. >> >> -# Define compiler flags, LIBSTDCXX_RAW_CXX_CXXFLAGS, for libstdc++-v3 >> -# header files to compile libraries in C++ with raw_cxx=true. >> +# Define flags, LIBSTDCXX_RAW_CXX_CXXFLAGS and # LIBSTDCXX_RAW_CXX_LDFLAGS, >> +# for libstdc++-v3 header files to compile and link libraries in C++ with >> +# raw_cxx=true. >> AC_DEFUN([GCC_LIBSTDCXX_RAW_CXX_FLAGS], [ >> AC_REQUIRE([ACX_NONCANONICAL_TARGET]) >> LIBSTDCXX_RAW_CXX_CXXFLAGS="\ >> -I\$(top_builddir)/../libstdc++-v3/include \ >> -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \ >> -I\$(top_srcdir)/../libstdc++-v3/libsupc++" >> + LIBSTDCXX_RAW_CXX_LDFLAGS="\ >> + -I\$(top_builddir)/../libstdc++-v3/src/libstdc++.la" > > -I..../libstdc++-v3/src/libstdc++.la ? That can't be right, libstdc++.la > is not a directory containing header files.
And a library shouldn't be put on LDFLAGS, but on LIBADD. And LIBSTDCXX_RAW_CXX_LDLAGS doesn't exist. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."