bug#32211: problems with cross-compiling

Bob Friesenhahn <[email protected]>
Newsgroups gmane.comp.gnu.libtool.bugs
Message-ID <[email protected]>
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
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

_______________________________________________
Bug-libtool mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-libtool
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.