GNU bug report logs -
#32211
problems with cross-compiling
Previous Next
Full log
View this message in rfc822 format
[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.