From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Newsgroups: gmane.emacs.bugs Subject: bug#11251: Use -Wl,-rpath instead of -R on GNU/Linux with GCC 4.6 Date: Mon, 16 Apr 2012 12:01:06 +0200 Message-ID: <87obqsq9lp.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: dough.gmane.org 1334570542 7963 80.91.229.3 (16 Apr 2012 10:02:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 16 Apr 2012 10:02:22 +0000 (UTC) To: 11251@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 16 12:02:21 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1SJilD-0001Te-LY for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Apr 2012 12:02:15 +0200 Original-Received: from localhost ([::1]:58863 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJilC-0003rg-Jm for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Apr 2012 06:02:14 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41432) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJil5-0003qd-5H for bug-gnu-emacs@gnu.org; Mon, 16 Apr 2012 06:02:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SJikz-0000k6-5w for bug-gnu-emacs@gnu.org; Mon, 16 Apr 2012 06:02:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35360) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJikz-0000k2-2Y for bug-gnu-emacs@gnu.org; Mon, 16 Apr 2012 06:02:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SJil0-0000cE-0E for bug-gnu-emacs@gnu.org; Mon, 16 Apr 2012 06:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Apr 2012 10:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11251 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13345705082325 (code B ref -1); Mon, 16 Apr 2012 10:02:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Apr 2012 10:01:48 +0000 Original-Received: from localhost ([127.0.0.1]:36383 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SJikl-0000bQ-6q for submit@debbugs.gnu.org; Mon, 16 Apr 2012 06:01:47 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53918) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SJiki-0000bE-Nx for submit@debbugs.gnu.org; Mon, 16 Apr 2012 06:01:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SJikX-0000df-2b for submit@debbugs.gnu.org; Mon, 16 Apr 2012 06:01:38 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:50513) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJikW-0000dY-W3 for submit@debbugs.gnu.org; Mon, 16 Apr 2012 06:01:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35149) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJikO-0003nH-Eg for bug-gnu-emacs@gnu.org; Mon, 16 Apr 2012 06:01:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SJikI-0000ZX-2A for bug-gnu-emacs@gnu.org; Mon, 16 Apr 2012 06:01:23 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:52893) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJikH-0000ZQ-VQ for bug-gnu-emacs@gnu.org; Mon, 16 Apr 2012 06:01:17 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36519) by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1SJikH-0005Tz-Az for bug-emacs@gnu.org; Mon, 16 Apr 2012 06:01:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SJik9-0000Xi-4n for bug-emacs@gnu.org; Mon, 16 Apr 2012 06:01:16 -0400 Original-Received: from xanadu.aquilenet.fr ([88.191.123.111]:40646) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJik8-0000XO-Tg for bug-emacs@gnu.org; Mon, 16 Apr 2012 06:01:09 -0400 Original-Received: from localhost (xanadu.aquilenet.fr [127.0.0.1]) by xanadu.aquilenet.fr (Postfix) with ESMTP id 43DA5930C for ; Mon, 16 Apr 2012 12:01:07 +0200 (CEST) Original-Received: from xanadu.aquilenet.fr ([127.0.0.1]) by localhost (xanadu.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id feFaImjRXs4O for ; Mon, 16 Apr 2012 12:01:07 +0200 (CEST) Original-Received: from pluto (unknown [193.50.110.130]) by xanadu.aquilenet.fr (Postfix) with ESMTPSA id D7C539182 for ; Mon, 16 Apr 2012 12:01:06 +0200 (CEST) X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 28 Germinal an 220 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.93 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:59109 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, The patch below fixes linking of =E2=80=98temacs=E2=80=99 on GNU/Linux with= GCC 4.6. --=-=-= Content-Type: text/x-patch Content-Disposition: inline === modified file 'configure.in' --- configure.in 2011-09-26 18:38:31 +0000 +++ configure.in 2012-04-16 09:52:23 +0000 @@ -3406,7 +3406,7 @@ case "$opsys" in ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM ## had different values in configure (in ac_link) and src/Makefile.in. ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS. - gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;; + gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX_RPATH)" ;; *) LD_SWITCH_SYSTEM_TEMACS= ;; esac --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable GCC 4.5 used to ignore =E2=80=98-R=E2=80=99, but GCC 4.6 rejects it: --8<---------------cut here---------------start------------->8--- $ echo "int main () { return 0; }" > t.c $ ./result/bin/gcc t.c -R/foo gcc: unrecognized option '-R/foo' $ echo $? 0 $ ./result/bin/gcc --version | head -1 gcc (GCC) 4.5.3 $ gcc t.c -R/foo gcc: error: unrecognized option =E2=80=98-R=E2=80=99 $ echo $? 1 $ gcc --version | head -1 gcc (GCC) 4.6.2 --8<---------------cut here---------------end--------------->8--- (This is why the =E2=80=98build=E2=80=99 job at has been failing since the standard build environment switched from GCC 4.5 to 4.6 last month.) In fact, the above should be applied to all GNU variants, so *gnu* may be more appropriate than gnu-linux. Thanks, Ludo=E2=80=99. --=-=-=--