From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28950 invoked by alias); 27 May 2006 20:23:43 -0000 Received: (qmail 28931 invoked by uid 48); 27 May 2006 20:23:42 -0000 Date: Sat, 27 May 2006 20:23:00 -0000 Message-ID: <20060527202342.28930.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libgcj/24403] --enable-java-awt=qt fails to build In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: java-prs@gcc.gnu.org From: "borisdusek at cmail dot cz" Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org X-SW-Source: 2006-q2/txt/msg00302.txt.bz2 List-Id: ------- 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