public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/28009]  New: libjava cannot be cross-built; X_CFLAGS includes /usr/include
@ 2006-06-13  7:12 tbm at cyrius dot com
  2006-06-13  7:13 ` [Bug libgcj/28009] " tbm at cyrius dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: tbm at cyrius dot com @ 2006-06-13  7:12 UTC (permalink / raw)
  To: java-prs

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-02-01 23:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-13  7:12 [Bug libgcj/28009] New: libjava cannot be cross-built; X_CFLAGS includes /usr/include tbm at cyrius dot com
2006-06-13  7:13 ` [Bug libgcj/28009] " tbm at cyrius dot com
2006-06-13  7:17 ` tbm at cyrius dot com
2006-09-03  7:23 ` pinskia at gcc dot gnu dot org
2006-09-04 10:10 ` tbm at cyrius dot com
2008-02-01 16:43 ` jwlemke at specifix dot com
2008-02-01 23:39 ` wilson at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).