From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.lisp.guile.user Subject: Re: guile-2.0 on mingw: the sequel Date: Mon, 26 Aug 2013 05:35:35 +0300 Message-ID: <83a9k5gow8.fsf@gnu.org> References: <83vc2wj4hz.fsf@gnu.org> <877gfccueo.fsf@tines.lan> <83d2p4ifow.fsf@gnu.org> <87d2p18umg.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1377484546 19723 80.91.229.3 (26 Aug 2013 02:35:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Aug 2013 02:35:46 +0000 (UTC) Cc: guile-user@gnu.org To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Aug 26 04:35:49 2013 Return-path: Envelope-to: guile-user@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 1VDmei-0005lG-DJ for guile-user@m.gmane.org; Mon, 26 Aug 2013 04:35:48 +0200 Original-Received: from localhost ([::1]:48432 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VDmeh-0007LY-Oa for guile-user@m.gmane.org; Sun, 25 Aug 2013 22:35:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55668) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VDmeT-0007LC-C3 for guile-user@gnu.org; Sun, 25 Aug 2013 22:35:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VDmeM-0002fF-Ks for guile-user@gnu.org; Sun, 25 Aug 2013 22:35:33 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:39795) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VDmeM-0002f7-D3; Sun, 25 Aug 2013 22:35:26 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MS400L009KJYX00@a-mtaout22.012.net.il>; Mon, 26 Aug 2013 05:35:25 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MS400L6D9V0V250@a-mtaout22.012.net.il>; Mon, 26 Aug 2013 05:35:25 +0300 (IDT) In-reply-to: <87d2p18umg.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:10712 Archived-At: > From: ludo@gnu.org (Ludovic Court=C3=A8s) > Date: Sun, 25 Aug 2013 20:59:03 +0200 >=20 > > Why should this feature be limited to Windows builds of Guile? W= hy > > not make it work for Posix platforms as well? Some other project= s > > already do, they use argv[0] and PATH search to find the place wh= ere > > the executable is installed, and record relative file names from > > there. >=20 > This is not completely reliable when using argv[0] because argv[0] = can > be anything, though this can be work around on Linux-based systems = with > /proc/self/exe as done in > . Indeed. > Here=E2=80=99s a proposal: add a --enable-relocatable configure opt= ion, have it > default to yes on MinGW and Cygwin (assuming there=E2=80=99s a meth= od that works > reliably on these), and default to no elsewhere; alternately, have = it > default to no everywhere. >=20 > WDYT? Sounds good to me, thanks.