From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: RFC: Cross compiling Emacs with qemu-user Date: Tue, 12 Dec 2017 15:34:20 -0500 Message-ID: References: <87mv2nc0nj.fsf@home.blind.guru> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1513110956 22894 195.159.176.226 (12 Dec 2017 20:35:56 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 12 Dec 2017 20:35:56 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 12 21:35:52 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOrHJ-0005ha-Ez for ged-emacs-devel@m.gmane.org; Tue, 12 Dec 2017 21:35:49 +0100 Original-Received: from localhost ([::1]:60380 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOrHQ-0005bX-Kr for ged-emacs-devel@m.gmane.org; Tue, 12 Dec 2017 15:35:56 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43763) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOrG5-0004pd-L6 for emacs-devel@gnu.org; Tue, 12 Dec 2017 15:34:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eOrG2-0006dU-FT for emacs-devel@gnu.org; Tue, 12 Dec 2017 15:34:33 -0500 Original-Received: from [195.159.176.226] (port=37078 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eOrG2-0006cr-8T for emacs-devel@gnu.org; Tue, 12 Dec 2017 15:34:30 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1eOrFr-00020l-SZ for emacs-devel@gnu.org; Tue, 12 Dec 2017 21:34:19 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 38 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:IY2flp/O31CxL23fvHk1gjwGD3U= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:220952 Archived-At: > * In principle, would this be something Emacs would want to support? I';ll let Eli and John chime in, but I don't see any reason why not. > * What would need to be done to make the patch below acceptable? Good question. Some comments below. > EMACS = ${top_builddir}/src/emacs > -emacs = EMACSLOADPATH= "${EMACS}" -batch --no-site-file --no-site-lisp > +emacs = EMACSLOADPATH= ${EMACS} -batch --no-site-file --no-site-lisp I'm not sure if Emacs can be built currently in a directory whose full name includes spaces, but it's something that *should* work. The above would break it AFAICT, so we need some other solution. > +AC_ARG_WITH([emulator],[AS_HELP_STRING([--with-emulator=EMULATOR], > + [Emulator to use when executing target binaries])], > + EMULATOR="$withval" > + AC_SUBST(EMULATOR)) It'd be good to make the doc slightly more precise (i.e. clarify that it specifies an actual *command* rather than just which kind of emulator we want to use). > -RUN_TEMACS = ./temacs > +RUN_TEMACS = temacs Why did you need to get rid of the "./"? It's needed to tell the shell not to search through $PATH but in the cwd instead. > - $(MAKE) -C ../admin/unidata all EMACS="../$(bootstrap_exe)" > + $(MAKE) -C ../admin/unidata all EMACS="$(EMULATOR) $(bootstrap_exe)" Hmm... how will $(EMULATOR) know to look in ../ ? Stefan