This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgcj/28009] libjava cannot be cross-built; X_CFLAGS includes /usr/include



------- Comment #5 from jwlemke at specifix dot com  2008-02-01 16:43 -------
I ran into this problem as well.  I was building x86 x mips64.
FWIW, my solution was this:

2008-01-31  James Lemke  <jwlemke@specifix.com>

       * configure.ac: For a cross, if --with-x was not specified supress it.
       * configure: Regenerate.

Index: gcc/libjava/configure.ac
===================================================================
RCS file: /services/cvs/cvsroot/latest/gcc/libjava/configure.ac,v
retrieving revision 1.1.1.9.2.6
diff -u -p -r1.1.1.9.2.6 configure.ac
--- gcc/libjava/configure.ac    25 Sep 2006 02:03:13 -0000      1.1.1.9.2.6
+++ gcc/libjava/configure.ac    1 Feb 2008 16:25:52 -0000
@@ -705,6 +705,10 @@ AC_SUBST(ZLIBSPEC)
 ZLIBTESTSPEC=
 AC_SUBST(ZLIBTESTSPEC)

+if test "x${with_x-unset}" = xunset -a "x$cross_compiling" = xyes; then
+    with_x=no
+fi
+
 AC_PATH_XTRA

 # FIXME: this should be _libs on some hosts.


-- 

jwlemke at specifix dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jwlemke at specifix dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28009


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]