This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcj/28009] New: libjava cannot be cross-built; X_CFLAGS includes /usr/include
- From: "tbm at cyrius dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Jun 2006 07:12:17 -0000
- Subject: [Bug libgcj/28009] New: libjava cannot be cross-built; X_CFLAGS includes /usr/include
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
libjava fails to cross-build because the Makefile includes an -I/usr/include.
Removing that makes it work. I've seen this a number of times now, i386 to
alpha-linux, i386 to m68-linux, etc. The problem is this in the Makefile:
X_CFLAGS = -I/usr/include
and X_CFLAGS is part of AM_CXXFLAGS which is where it causes the problem.
I configured gcc with:
/home/tbm/scratch/gcc/configure --disable-bootstrap \
--enable-languages=c,c++,java --target=alpha-linux-gnu
--
Summary: libjava cannot be cross-built; X_CFLAGS includes
/usr/include
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libgcj
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tbm at cyrius dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28009