From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: Hard-coded paths to crt1.o and the like Date: Tue, 12 Feb 2008 19:10:21 -0800 Message-ID: <200802130310.m1D3AQhG001830@sallyv1.ics.uci.edu> References: <763967.69672.qm@web25401.mail.ukl.yahoo.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1202872380 7359 80.91.229.12 (13 Feb 2008 03:13:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Feb 2008 03:13:00 +0000 (UTC) Cc: emacs-devel@gnu.org To: rdiezmail-emacs@yahoo.de Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 13 04:13:23 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JP83l-0004ws-GA for ged-emacs-devel@m.gmane.org; Wed, 13 Feb 2008 04:13:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JP83H-0007tb-RG for ged-emacs-devel@m.gmane.org; Tue, 12 Feb 2008 22:12:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JP83C-0007t9-TJ for emacs-devel@gnu.org; Tue, 12 Feb 2008 22:12:46 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JP83B-0007sl-SB for emacs-devel@gnu.org; Tue, 12 Feb 2008 22:12:46 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JP83B-0007si-P9 for emacs-devel@gnu.org; Tue, 12 Feb 2008 22:12:45 -0500 Original-Received: from sallyv1.ics.uci.edu ([128.195.1.109]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1JP83B-0005xM-HV for emacs-devel@gnu.org; Tue, 12 Feb 2008 22:12:45 -0500 X-ICS-MailScanner-Watermark: 1203477032.38165@rUKMrKErGEd21IQwfPW3jw Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv1.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id m1D3AQhG001830; Tue, 12 Feb 2008 19:10:26 -0800 (PST) Original-Lines: 23 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:88929 Archived-At: I've cross-compiled emacs recently. It does not work out of the box, but it's not too hard to hack it to make it work. >From what I remember src/prefix-args does not work because it is built with the cross-compiler instead of the host compiler (and maybe there was some other binary that needed the same thing). But after you build "temacs", you need either a simulator or a real machine to dump the image. > Hard-coded paths in build scripts are always a bad idea (in my > opinion). Can someone introduce some environment variable that, if > defined, would replace the hard-coded /usr/lib/ paths? That variable > should be listed in "./configure --help", next to "LDFLAGS" and > friends. Patches are welcome!