On 21/09/2020 15.23, Jan Engelhardt wrote:
On Monday 2020-09-21 14:33, Carlos E. R. wrote:
On 21/09/2020 13.53, Jan Engelhardt wrote:
On Monday 2020-09-21 13:47, Carlos E. R. wrote:
Which is obviously incorrect, or it would build. Don't ask me what is the error, I use "Build" from inside Lazarus, or:
There is no -k-pie in your command line.
Well, my program doesn't need/use it.
Luigi wants to build peazip in PIE mode, and has a patch in that package to make it so. But PIE only works if _all_ dependencies are PIC/PIE too. fpc is PIE-enabled. lazarus isn't. That breaks the chain towards peazip which aspires PIE.
Having PIE is a SUSE policy, similar to LTO. That was since 2017-05-27.
Ok, I understand the issue. But you can not force upstream to change to use PIE. My guess is that you would have to rebuild the entire RTL stack. I tried/did once, long ago, then refrained, not worth the effort. Basically, instead of giving the location of the units to link, you give the location of their sources, so that they are built new, local to the current project, using the project options. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)