From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?=C3=93scar?= Fuentes Newsgroups: gmane.emacs.bugs Subject: bug#19111: 25.0.50; 32 bits temacs.exe is linked with wrong image-base when built on 64 bit Windows host Date: Fri, 21 Nov 2014 23:54:08 +0100 Message-ID: <87a93kp3lb.fsf@wanadoo.es> References: <87fvdfrl4p.fsf@telefonica.net> <83k32q7wkl.fsf@gnu.org> <87bno2swxp.fsf@wanadoo.es> <83egsy7d2x.fsf@gnu.org> <87siheqzq9.fsf@wanadoo.es> <83389d7t89.fsf@gnu.org> <87a93lrgct.fsf@wanadoo.es> <83mw7l6bjc.fsf@gnu.org> <87389dragi.fsf@wanadoo.es> <83egsx60um.fsf@gnu.org> <87y4r5pgae.fsf@wanadoo.es> <87ioi8pg84.fsf@wanadoo.es> <87egswpf9p.fsf@wanadoo.es> 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 1416610528 1044 80.91.229.3 (21 Nov 2014 22:55:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Nov 2014 22:55:28 +0000 (UTC) To: 19111@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 21 23:55:20 2014 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 1Xrx6m-0005XI-9n for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Nov 2014 23:55:20 +0100 Original-Received: from localhost ([::1]:42757 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xrx6l-0003Hd-KO for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Nov 2014 17:55:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53891) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xrx6c-0003HV-I6 for bug-gnu-emacs@gnu.org; Fri, 21 Nov 2014 17:55:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xrx6V-0007OD-1i for bug-gnu-emacs@gnu.org; Fri, 21 Nov 2014 17:55:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44096) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xrx6U-0007Nm-MK for bug-gnu-emacs@gnu.org; Fri, 21 Nov 2014 17:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xrx6U-00043a-79 for bug-gnu-emacs@gnu.org; Fri, 21 Nov 2014 17:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=C3=93scar?= Fuentes Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Nov 2014 22:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19111 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19111-submit@debbugs.gnu.org id=B19111.141661045515533 (code B ref 19111); Fri, 21 Nov 2014 22:55:02 +0000 Original-Received: (at 19111) by debbugs.gnu.org; 21 Nov 2014 22:54:15 +0000 Original-Received: from localhost ([127.0.0.1]:41309 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xrx5i-00042S-1s for submit@debbugs.gnu.org; Fri, 21 Nov 2014 17:54:14 -0500 Original-Received: from relaycp04.dominioabsoluto.net ([217.116.26.100]:45952) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xrx5f-00042I-Fe for 19111@debbugs.gnu.org; Fri, 21 Nov 2014 17:54:13 -0500 Original-Received: from smtp.movistar.es (smtp08.acens.net [86.109.99.132]) by relaycp04.dominioabsoluto.net (Postfix) with ESMTP id AFC1F6476C; Fri, 21 Nov 2014 23:54:09 +0100 (CET) X-CTCH-RefID: str=0001.0A0B0207.546FC291.01B2, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-Spam: Unknown Original-Received: from qcore (79.158.48.132) by smtp.movistar.es (8.6.122.03) (authenticated as 981711563$telefonica.net) id 543BDCB4014899B1; Fri, 21 Nov 2014 22:54:09 +0000 In-Reply-To: <87egswpf9p.fsf@wanadoo.es> ("=?UTF-8?Q?=C3=93scar?= Fuentes"'s message of "Fri, 21 Nov 2014 19:41:54 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:96409 =C3=93scar Fuentes writes: >> with-cxx --enable-version-specific-runtime-libs --build=3Dmingw32 --pref= ix=3D/mingw > __________________________________________________________^^^^^^^ > > It seems that you can throw anything at the gcc `configure' script and > it will make sense of it. > > I'll modify the patch to handle that case. This should cover Dani's case and the string replacement issue: diff --git a/configure.ac b/configure.ac index 5d71c2f..4a48810 100644 --- a/configure.ac +++ b/configure.ac @@ -145,6 +145,36 @@ case $canonical in *-mingw*) . $srcdir/nt/mingw-cfg.site =20 + # When we build with MinGW under MSYS, we are cross-compiling. Hence + # we can't rely on the output of MSYS `uname' for the architecture + # (32 bit MinGW compiler with 64 bit MSYS2, for instance) and must + # use the compiler's target, unless when the user explicitly + # provides one: + if test -z $target_alias; then + AC_MSG_CHECKING([the compiler's target]) + if test -z $CC; then + cc=3Dgcc + else + cc=3D$CC + fi + t=3D$($cc -v 2>&1 | grep "^Target: ") + t=3D`echo $t | sed -e 's/Target: //'` + case "$t" in + *-*) canonical=3D$t + ;; + "") AC_MSG_ERROR([Impossible to obtain $cc compiler target. +Please explicitly provide --target]) + ;; + *) AC_MSG_WARN([Compiler reported non-standard target. +Defaulting to $canonical.]) + ;; + esac + AC_MSG_RESULT([$canonical]) + else + canonical=3D$target_alias + fi + case $srcdir in /* | ?:*) # srcdir is an absolute path. In this case, force the format