From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harald Hanche-Olsen Newsgroups: gmane.emacs.devel Subject: Re: Building Emacs on two different OSes from a shared directory Date: Mon, 28 Jan 2013 13:36:17 +0100 (CET) Message-ID: <20130128.133617.1076987971155199688.hanche@math.ntnu.no> References: <20130128172906.a7bd35c445c8bc7b22ecaa0a@gmail.com> <20130128175346.ab8cfbff95c28511d6bebea3@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1359376588 29621 80.91.229.3 (28 Jan 2013 12:36:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Jan 2013 12:36:28 +0000 (UTC) Cc: emacs-devel@gnu.org, dmoncayo@gmail.com To: xfq.free@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 28 13:36:47 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tznx7-00061i-W2 for ged-emacs-devel@m.gmane.org; Mon, 28 Jan 2013 13:36:46 +0100 Original-Received: from localhost ([::1]:60122 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tznwp-0001WD-Tn for ged-emacs-devel@m.gmane.org; Mon, 28 Jan 2013 07:36:27 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:57474) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tznwj-0001Ul-Be for emacs-devel@gnu.org; Mon, 28 Jan 2013 07:36:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tznwf-0000jW-G2 for emacs-devel@gnu.org; Mon, 28 Jan 2013 07:36:21 -0500 Original-Received: from hylle02.itea.ntnu.no ([129.241.56.101]:50716) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tznwf-0000j3-A2 for emacs-devel@gnu.org; Mon, 28 Jan 2013 07:36:17 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by hylle02.itea.ntnu.no (Postfix) with ESMTP id 3A7E82C226; Mon, 28 Jan 2013 13:36:13 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at hylle02.itea.ntnu.no Original-Received: from localhost (dhcp-15247.math.ntnu.no [129.241.15.247]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: hanche) by hylle02.itea.ntnu.no (Postfix) with ESMTPSA id C02482C21E; Mon, 28 Jan 2013 13:36:11 +0100 (CET) In-Reply-To: <20130128175346.ab8cfbff95c28511d6bebea3@gmail.com> X-URL: http://www.math.ntnu.no/~hanche/ X-Mailer: Mew version 6.5 on Emacs 24.3.50 / Mule 6.0 (HANACHIRUSATO) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 129.241.56.101 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:156703 Archived-At: [Xue Fuqiao (2013-01-28 09:53:46 UTC)] > On Mon, 28 Jan 2013 10:38:55 +0100 > Dani Moncayo wrote: > > > Of course, if I make a separate branch for each OS, there should not > > be any problem, but the question is whether I could compile Emacs on > > both OSes using the same directory tree. > > The GNU Build System distinguishes two trees: the source tree, and the build tree. So I think you can do it. One way to do that would be, on architecture foo: ./autogen.sh mkdir build_foo cd build_foo ../configure make I am not too sure if autogen.sh has results that are incompatible between architectures, though, so you might not get away with building for architectures foo and bar at the same time. - Harald