[Lazarus] Cross-compiling without target libs
Henry Vermaak
henry.vermaak at gmail.com
Mon Jul 19 12:56:31 CEST 2010
On 19 July 2010 11:47, Kjow <antispammoni at gmail.com> wrote:
> 2010/7/18 Henry Vermaak <henry.vermaak at gmail.com>:
>> Have you tried passing the --allow-shlib-undefined option to the linker?
>>
>> Henry
>
> Thank you,
>
> it partially worked. I had some errors with some target libs, so
> adding --allow-shlib-undefined to arm-linux-ld options, all worked
> (the other option is -L/path/to/target/libs).
> If I use --allow-shlib-undefined only, I get linking errors (e.g.
> /home/kjow/lazarus/fpc/binutils/ld: skipping incompatible
> /usr/lib/libpthread.so when searching for -lpthread )
>
> Is it possible without all target libs?
I don't know. You'll have to remove the -lxxxxx options from the
linker, otherwise it will try and find the libraries. This is
obviously not very safe (plain dangerous, really). Why don't you just
copy all the libs from the target device onto your build machine?
Henry
More information about the Lazarus
mailing list