From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH 4/5] Inline the effect of am/pre-inst-guile Date: Tue, 22 Mar 2011 22:08:45 +0000 Message-ID: <87zkom4xle.fsf@ossau.uklinux.net> References: <1300745961-4287-1-git-send-email-neil@ossau.uklinux.net> <1300745961-4287-5-git-send-email-neil@ossau.uklinux.net> <1300826785.2341.17.camel@vuurvlieg> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1300831775 5947 80.91.229.12 (22 Mar 2011 22:09:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 22 Mar 2011 22:09:35 +0000 (UTC) Cc: guile-devel@gnu.org To: Jan Nieuwenhuizen Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Mar 22 23:09:30 2011 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q29lZ-0002VB-DG for guile-devel@m.gmane.org; Tue, 22 Mar 2011 23:09:29 +0100 Original-Received: from localhost ([127.0.0.1]:39709 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q29lY-0003T2-R8 for guile-devel@m.gmane.org; Tue, 22 Mar 2011 18:09:28 -0400 Original-Received: from [140.186.70.92] (port=49733 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q29lV-0003Sq-UX for guile-devel@gnu.org; Tue, 22 Mar 2011 18:09:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q29lU-0004fx-6F for guile-devel@gnu.org; Tue, 22 Mar 2011 18:09:25 -0400 Original-Received: from mail3.uklinux.net ([80.84.72.33]:51198) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q29lU-0004UN-1U for guile-devel@gnu.org; Tue, 22 Mar 2011 18:09:24 -0400 Original-Received: from arudy (unknown [78.149.125.151]) by mail3.uklinux.net (Postfix) with ESMTP id AFA631F6671; Tue, 22 Mar 2011 22:08:46 +0000 (GMT) Original-Received: from neil-laptop (unknown [192.168.11.4]) by arudy (Postfix) with ESMTP id 2B1E738013; Tue, 22 Mar 2011 22:08:46 +0000 (GMT) In-Reply-To: <1300826785.2341.17.camel@vuurvlieg> (Jan Nieuwenhuizen's message of "Tue, 22 Mar 2011 21:46:25 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-Received-From: 80.84.72.33 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:11957 Archived-At: Jan Nieuwenhuizen writes: [in rearranged order...] >> - "$(preinstguile)" -l "$(srcdir)/$(snarf_doc).scm" -c " \ >> + "$(top_builddir_absolute)/meta/guile" -l "$(srcdir)/$(snarf_doc).scm" \ >> + -c " \ > > How do you suggest this works during cross compiling? Because meta/guile itself uses $GUILE_FOR_BUILD when $cross_compiling is "yes". > Ah, but in my cross build recipe, i have something like > > preinstguile=$GUILE_FOR_BUILD Is that because you're cross-building in a way that doesn't set $cross_compiling to "yes"? I can understand if you are, because I think I was doing that when last working on mingw building, and using Wine and binfmt to run the built executables. > I know this isn't nice, I think preinstguile should go > and we should use $GUILE_FOR_BUILD throughout. > > It's just one variable, but one that you can override, I think the right thing might be to ensure that $cross_compiling is set to "yes" for your build, even if the default ./configure mechanisms (which I presume are based on the --target option) don't set it. Could you do a grep-find for "cross_compiling", and see if any of the things that depend on [ $cross_compiling = yes ] would _not_ be appropriate for your kind of build? (I think this would have worked for the mingw build that I was doing. The difference would have been that the non-installed intermediate executables, like guile_filter_doc_snarfage, were built (using CC_FOR_BUILD) and run host-natively, instead of being target-built and then Wine-run.) Regards, Neil