------- Comment #6 from borisdusek at cmail dot cz 2006-05-27 20:23 -------
(In reply to comment #0)
> Apparently CPPFLAGS is missing a -I for the newly built compiler's libstdc++
I borrowed a snip from libjava/Makefile.am section for xlib, which also needs
c++/libstdc++, then (since I am no autoconf/automake expert) made an awful hack
with CTRL+Z during compile-time and manually added the correct flags to
AM_CXXFLAGS in libjava/classpath/native/jni/qt-peer/Makefile with variables
substituted , and the qt-peers built with no problem and worked. The snip from
xlib is here:
lib_gnu_awt_xlib_la_CPPFLAGS = \
$(AM_CPPFLAGS) \
-I../libstdc++-v3/include \
-I../libstdc++-v3/include/$(target_noncanonical) \
-I$(srcdir)/../libstdc++-v3/libsupc++
so my Makefile has:
AM_CXXFLAGS = -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtGui \
-I/home/tmp/mybuild/gcc-trunk/i686-pc-linux-gnu/libstdc++-v3/include \
-I/home/tmp/mybuild/gcc-trunk/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu
\
-I/usr/src/gcc-trunk/libstdc++-v3/libsupc++
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24403