From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4262 invoked by alias); 21 Dec 2006 20:31:36 -0000 Received: (qmail 4253 invoked by uid 22791); 21 Dec 2006 20:31:35 -0000 X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 21 Dec 2006 20:31:30 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GxUZZ-0007ew-Qo for java-patches@gcc.gnu.org; Thu, 21 Dec 2006 21:31:25 +0100 Received: from 216.237.119.187 ([216.237.119.187]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Dec 2006 21:31:25 +0100 Received: from megacz by 216.237.119.187 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Dec 2006 21:31:25 +0100 To: java-patches@gcc.gnu.org From: Adam Megacz Subject: Re: canadian vs build==host configury (and $with_cross_host) Date: Thu, 21 Dec 2006 20:31:00 -0000 Message-ID: References: <17802.51550.370889.900011@zebedee.pink> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Home-Page: http://www.megacz.com/ User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux) X-IsSubscribed: yes Mailing-List: contact java-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-patches-owner@gcc.gnu.org X-SW-Source: 2006-q4/txt/msg00316.txt.bz2 Adam Megacz writes: > I think Canadian cross-builds need their own case arm in that block of > configure.ac (the "we cannot execute the compiler we just built" case, > which is not identical to the "we are making a cross-compiler" case). I see there's some code that attempts to do this with $which_gcj. Unfortunately it relies on $with_cross_host, which does not work properly for non-canadian (host==build) cross-compiles: gcc/configure.in: # Passing a --with-cross-host argument lets the target libraries know # whether they are being built with a cross-compiler or being built # native. However, it would be better to use other mechanisms to make the # sorts of decisions they want to make on this basis. Please consider # this option to be deprecated. FIXME. if test x${is_cross_compiler} = xyes ; then target_configargs="--with-cross-host=${host_alias} ${target_configargs}" fi If you invoke ./configure --target=foo You get libgcj/configure --with-cross-host="" (that is, the empty string). What is the right thing to do here? - a