[fpc-devel] Cross-compiling and warnings from linker

Sergey Organov sorganov at gmail.com
Mon Nov 22 23:05:07 CET 2021

Jonas Maebe via fpc-devel
<fpc-devel-PD4FTy7X32k2wBtHl531yWD2FQJk+8+b at public.gmane.org> writes:

> On 22/11/2021 15:52, Jonas Maebe via fpc-devel wrote:
>> On 21/11/2021 20:51, Sergey Organov via fpc-devel wrote:
>>> Then, in the /etc/fpc.cfg file, among a lot of statements inappropriate
>>> for cross-compilation (that happen to do no harm in my case), that is
>>> only expected for the file that belongs to installed native compiler,
>>> there is unconditional
>>> -Fl/usr/lib/$fpctarget-*
>>> directive that causes all this noise due to another bug, see below.
>> This one needs to become -Fl=/usr/lib/$fpctarget-* (see 
>> https://wiki.freepascal.org/User_Changes_3.2.0#Library_search_directories_and_custom_sysroots
>> )
> Actually, even that would be wrong. I'm not sure where that comes
> from. It does not appear anywhere in our own sources. I think this may
> be a Debian addition.

Could be. Anyway, it's rather old:

$ fpc | grep -i version
Free Pascal Compiler version 3.0.4+dfsg-23 [2019/11/25] for x86_64

-- Sergey Organov

More information about the fpc-devel mailing list