[fpc-pascal] Re: How does FPC calculate linker search paths upon -XP?
pascal at causal.com
Thu May 23 14:03:32 CEST 2013
So it looks like -XR is not the solution for cross-compiling, at least in
The compiler option I used:
seems to break when the linker encounters a linker script that specifies a
new path for the actual library object required; these generated paths are
not prepended when using -XR.
Instead one needs to use --sysroot so I've replaced this one line with:
disabling the default paths and making explicit the paths one actually
requires. I still don't understand how FPC generates the search paths per
my previous email but at least this alternative, verbose though it is,
seems to work.
Is this the correct (i.e. "best practice") solution?
On Thu, May 23, 2013 at 3:38 PM, Bruce Tulloch <pascal at causal.com> wrote:
> Using FPC 2.7.1 I'm cross-compiling from x86_64 to ARM/RPi and have
> This produces a link.res file that includes the following:
> but it DOES NOT include this line:
> despite the fact the ld.so configuration file:
> specifies both paths as:
> # Multiarch support
> What am I doing wrong?
> Thanks, Bruce
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal