[fpc-pascal] link.res search dirs when cross compiling [solved]

Benito van der Zander benito at benibela.de
Wed Nov 18 21:02:36 CET 2020


>
> Some are hardcoded, and fpc.cfg might contain -Fl lines with paths too 
> from parsing ld.so.conf on install
Well, I did not put them in ~/.fpc.cfg
In /etc/fpc.cfg there is

-Fl/usr/lib/gcc/x86_64-linux-gnu/10
-Fl/usr/lib/x86_64-linux-gnu/fpc/$fpcversion/lib/$FPCTARGET
-Fl/usr/lib/$fpctarget-*

The last one explains it. I actually have a directory 
/usr/lib/'${DEB_HOST_MULTIARCH}'.  Why would Ubuntu even ship such a 
directory.

$ dpkg -S DEB_HOST_MULTIARCH
libnss3:i386, libnss3:amd64: 
/usr/lib/${DEB_HOST_MULTIARCH}/libfreeblpriv3.chk
libnss3:i386, libnss3:amd64: 
/usr/lib/${DEB_HOST_MULTIARCH}/libfreeblpriv3.so
libnss3:i386, libnss3:amd64: /usr/lib/${DEB_HOST_MULTIARCH}/libfreebl3.chk
libnss3:i386, libnss3:amd64: /usr/lib/${DEB_HOST_MULTIARCH}/libfreebl3.so
libnss3:i386, libnss3:amd64: /usr/lib/${DEB_HOST_MULTIARCH}


Benito



On 18.11.20 20:33, Marco van de Voort via fpc-pascal wrote:
>
> Op 2020-11-18 om 19:21 schreef Benito van der Zander via fpc-pascal:
>>
>> where do the SEARCH_DIRs in link.res come from?
>
> Some are hardcoded, and fpc.cfg might contain -Fl lines with paths too 
> from parsing ld.so.conf on install
>
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20201118/3508f3bc/attachment.htm>


More information about the fpc-pascal mailing list