[Pkg-pascal-devel] Lintian errors and warnings on FPC

Abou Al Montacir abou.almontacir at sfr.fr
Wed Jan 26 08:48:21 GMT 2022


Hi David,

On Wed, 2022-01-26 at 10:48 +1100, David Bannon wrote:
> A special case is where the binary is only statically linked because its a
> small, single function thing that does not need to be linked externally. There
> are a handful of such binaries in FPC. In their case, they need the src
> patched to add eg {$linklib c}, that forces an otherwise unnecessary link to
> the C libs and therefore dynamic linking, then just add the -Cg -k-pie -k-znow
> 
> Or, somewhat messier, I found you can explicitly name the loader on the linker
> line
> 
> fpc -Cg -k-pie -k-znow -k"--dynamic-linker /lib64/ld-linux-x86-64.so.2"
> test.pas
Thank you for this explanation.
I'm not fan of forcing linking with libc. This is against the FPC ideal of
producing pure pascal code.
I don't know if forcing the dynamic linker is a good way to go. I'll check
upstream (and probably the web saerch engines first).
-- 
Cheers,
Abou Al Montacir

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-pascal-devel/attachments/20220126/0b4f109d/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part
URL: <http://alioth-lists.debian.net/pipermail/pkg-pascal-devel/attachments/20220126/0b4f109d/attachment.sig>


More information about the Pkg-pascal-devel mailing list