Mike Frysinger <vapier@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at submit) by debbugs.gnu.org; 16 Jan 2024 01:32:28 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 15 20:32:28 2024 Received: from localhost ([127.0.0.1]:47323 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1rPYJY-0007bw-7H for submit <at> debbugs.gnu.org; Mon, 15 Jan 2024 20:32:28 -0500 Received: from lists.gnu.org ([2001:470:142::17]:60068) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <vapier@HIDDEN>) id 1rPYJW-0007bY-00 for submit <at> debbugs.gnu.org; Mon, 15 Jan 2024 20:32:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <vapier@HIDDEN>) id 1rPYJP-0004gd-GY for bug-libtool@HIDDEN; Mon, 15 Jan 2024 20:32:19 -0500 Received: from woodpecker.gentoo.org ([140.211.166.183] helo=smtp.gentoo.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from <vapier@HIDDEN>) id 1rPYJM-0001w9-HM for bug-libtool@HIDDEN; Mon, 15 Jan 2024 20:32:19 -0500 Received: by smtp.gentoo.org (Postfix, from userid 559) id DF95B3432A0; Tue, 16 Jan 2024 01:32:12 +0000 (UTC) From: Mike Frysinger <vapier@HIDDEN> To: Eric PAIRE <eric.paire@HIDDEN> Subject: Re: cross-compile code for LD setup does not use the right system macro User-Agent: GNU debbugs/0 Message-Id: <20240116013212.DF95B3432A0@HIDDEN> Date: Tue, 16 Jan 2024 01:32:12 +0000 (UTC) Received-SPF: pass client-ip=140.211.166.183; envelope-from=vapier@HIDDEN; helo=smtp.gentoo.org X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.6 (/) X-Debbugs-Envelope-To: submit Cc: 8912 <at> debbugs.gnu.org, "bug-libtool@HIDDEN" <bug-libtool@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.4 (/) On Tue, 21 Jun 2011 14:12:02 +0200, Eric PAIRE wrote: > While compiling on 64-bit Linux a package that will be executed on a 32-bit Linux ([--build=x86_64-unknown-linux-gnu] --host=i686-pc-linux-gnu), I am facing an issue with the value of the LD macro generated in libtool, as the libtool part of configure does not add the '-m elf_i386' option for LD to generate a 32-bit object/program. can you share an example project/configure/config.log showing the problem ? > Actually, the problem is that libtool.m4 checks for the build system type with $host, whereas it should be $build. I have understood that $build is the system on which the program is generated (64-bit in my case) and $host the system on which the program created (32-bit in my case) is meant to run. So the right macro should test build system, and not host. this is incorrect. $build controls where things are compiling. $host controls where the things will run. please see: https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.72/html_node/Specifying-Target-Triplets.html -mike
Mike Frysinger <vapier@HIDDEN>
:bug-libtool@HIDDEN
.
Full text available.bug-libtool@HIDDEN
:bug#68494
; Package libtool
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.