GNU bug report logs - #8912
cross-compile code for LD setup does not use the right system macro

Previous Next

Package: libtool;

Reported by: Eric PAIRE <eric.paire <at> st.com>

Date: Tue, 21 Jun 2011 15:25:02 UTC

Severity: normal

Merged with 68494

Full log


View this message in rfc822 format

From: Eric PAIRE <eric.paire <at> st.com>
To: 8912 <at> debbugs.gnu.org
Subject: bug#8912: cross-compile code for LD setup does not use the right system macro
Date: Tue, 21 Jun 2011 14:12:02 +0200
[Message part 1 (text/plain, inline)]
Hi all,

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.

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.

You will find attached a fix proposal.

Thanks,
Eric PAIRE

[Message part 2 (text/html, inline)]
[PATCH.libtool (application/octet-stream, attachment)]

This bug report was last modified 1 year and 150 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.