[fpc-pascal] Linker script doesn't search in /usr/lib32 when cross compiling from x86_64 to i386
Jonas Maebe
jonas.maebe at elis.ugent.be
Mon Jan 19 16:54:56 CET 2015
On 19 Jan 2015, at 16:22, leledumbo wrote:
>> Because we don't use the linker's "-T" option (the one the linker
>> warning refers to), the link.res should be added to the built-in
>> linker script of your system rather than replace it. This built-in
>> linker script should already contain the default library paths. Run
>> "ld -m elf_i386 --verbose" to see this built-in linker script. The
>> default directories are listed via SEARCH_DIR() near the top.
>>
>> I don't know what could have changed in FPC to cause your observed
>> change. Did you perhaps also regenerate your fpc.cfg configuration
>> file when updating? Maybe something changed in that regard.
>
> Sorry, I forget to tell you that Marco has given the answer by using
> -Xd.
That should not be necessary.
> ld
> -m elf_i386 --verbose does show the forbidden-for-32-bit-target paths,
But does it also show the 32 bit ones? If not, you should probably
file a bug report against your distribution, and the difference
presumably did not come from an update of FPC, but from an update of
your system.
Jonas
More information about the fpc-pascal
mailing list