From: Dave H. <dhy...@gm...> - 2010-07-03 05:32:32
|
Hi, 2010/7/2 Felipe Brandão Cavalcanti <cav...@gm...>: > Hello all, > > I am trying to cross-compile a program for use with my Gumstix Overo, > however, I am having a serius problem with the GNU Linker (LD). I am getting > the following messages: > > arm-angstrom-linux-gnueabi-ld: unrecognized option > '-Wl,-rpath-link,/media/Data-Linux/overo/overo-oe/tmp/sysroots/armv7a-angstrom-linux-gnueabi/usr/lib' > arm-angstrom-linux-gnueabi-ld: use the --help option for usage information > > It seems that the installed ld doesn't understand the -Wl option, which is > very common these days. So, anybody found a workarround? Maybe another > version of LD is available? Try using arm-angstrom-linux-gnueabi-gcc (or arm-angstrom-linux-gnueabi-g++) 99% of the time, using ld directly is the wrong thing to do. Linking should alsmost always be performed using gcc or g++. -rpath is an ld option, and -Wl is a gcc option (not an ld option) to pass the following arguments through to ld. -- Dave Hylands Shuswap, BC, Canada http://www.DaveHylands.com/ |