[fpc-pascal] link.res search dirs when cross compiling
Jonas Maebe
jonas at freepascal.org
Wed Nov 18 20:01:20 CET 2020
On 18/11/2020 19:21, Benito van der Zander via fpc-pascal wrote:
> where do the SEARCH_DIRs in link.res come from?
>
> My build has started failing, after trying it on a new computer with
> "/home/benito/bin/arm-linux-androideabi-ld.bfd:android/libs/armeabi/link42815.res:17:
> ignoring invalid character `'' in expression"
How are you specifying your cross-compilation sysroot? Make sure you use
the -XR parameter for that, and not -Fl or so. -Fl just instructs the
compiler/linker to add a directory to the list of standard directories
to search, rather than to completely ignore your host system and only
look for libraries in the hierarchy below the sysroot.
Jonas
More information about the fpc-pascal
mailing list