GNU bug report logs - #32211
problems with cross-compiling

Previous Next

Package: libtool;

Reported by: Jörg Stucke <stucke <at> informatik.uni-bonn.de>

Date: Thu, 19 Jul 2018 15:04:01 UTC

Severity: normal

Full log


Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Bob Friesenhahn <bfriesen <at> simple.dallas.tx.us>
To: Jörg Stucke <stucke <at> informatik.uni-bonn.de>
Cc: bug-libtool <at> gnu.org, 32211 <at> debbugs.gnu.org
Subject: Re: bug#32211: problems with cross-compiling
Date: Thu, 19 Jul 2018 13:45:00 -0500 (CDT)
[Message part 1 (text/plain, inline)]
On Thu, 19 Jul 2018, Jörg Stucke wrote:
>
> It seems that the linking flag "-target mips-linux-gnu" was removed by
> libtool which resulted in the linker (clang) assuming the wrong
> architecture (x86_64). The flag was set in the LDFLAGS environment
> variable.

Libtool only passes through options that it understands.  Otherwise 
one must use -Wc, and -Wl, syntax to pass options to the compiler or 
linker.

Also, usually cross-tools are supposed to be named a particular way 
(including the target triplet in the name) according to autoconf 
conventions (see the autoconf documentation).  This helps autoconf and 
libtool understand that cross-compilation is being performed, and 
assures that the correct tools are used.

On a system here, I see cross tools named like mips-linux-gcc and 
mips-unknown-linux-uclibc-gcc.

Bob
-- 
Bob Friesenhahn
bfriesen <at> simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

This bug report was last modified 6 years and 332 days ago.

Previous Next


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