Recent

Author Topic: Lintian warnings about compiled file  (Read 189 times)

circular

  • Hero Member
  • *****
  • Posts: 3568
    • Personal webpage
Lintian warnings about compiled file
« on: October 21, 2020, 05:56:07 pm »
I am trying to submit LazPaint to the Debian distributions and there are some warnings related to the binary file produced by Lazarus/FPC.

I suppose it is not that bad but does anyone know if there are compiler switches for that?

https://lintian.debian.org/tags/hardening-no-pie.html
https://lintian.debian.org/tags/hardening-no-bindnow.html
https://lintian.debian.org/tags/hardening-no-fortify-functions.html
Conscience is the debugger of the mind

Blaazen

  • Hero Member
  • *****
  • Posts: 2994
  • POKE 54296,15
    • Eye-Candy Controls
Re: Lintian warnings about compiled file
« Reply #1 on: October 21, 2020, 06:37:00 pm »
I don't know much about debian. Quick googling shows that Lazarus, FPC and DoubleCommander use lintian-overrides to avoid this kind of warnings.

See for example ..lazarus/tools/install/debian_lazarus/lintian.overrides
But those are not exactly the warnings you posted.
Lazarus 2.1.0 r64115 FPC 3.3.1 r40507 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

circular

  • Hero Member
  • *****
  • Posts: 3568
    • Personal webpage
Re: Lintian warnings about compiled file
« Reply #2 on: November 20, 2020, 09:21:15 am »
I have been able to solve those warnings with the following compiler options:
Code: [Select]
-Cg
-k-pie
-k-znow

It was suggested to me on mentors if I recall well.
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018