forked from pool/peazip
34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
|
From: Luigi Baldoni <aloisio@gmx.com>
|
||
|
Date: 2018-02-11 13:31:28 +0100
|
||
|
Subject: Build PIE binaries
|
||
|
|
||
|
Set lazarus project files so that we produce position
|
||
|
independent executables.
|
||
|
|
||
|
Index: peazip-9.9.1.src/dev/project_pea.lpi
|
||
|
===================================================================
|
||
|
--- peazip-9.9.1.src.orig/dev/project_pea.lpi
|
||
|
+++ peazip-9.9.1.src/dev/project_pea.lpi
|
||
|
@@ -570,6 +570,8 @@
|
||
|
<DebugInfoType Value="dsDwarf3"/>
|
||
|
</Debugging>
|
||
|
<Options>
|
||
|
+ <PassLinkerOptions Value="True"/>
|
||
|
+ <LinkerOptions Value="-pie"/>
|
||
|
<Win32>
|
||
|
<GraphicApplication Value="True"/>
|
||
|
</Win32>
|
||
|
Index: peazip-9.9.1.src/dev/project_peach.lpi
|
||
|
===================================================================
|
||
|
--- peazip-9.9.1.src.orig/dev/project_peach.lpi
|
||
|
+++ peazip-9.9.1.src/dev/project_peach.lpi
|
||
|
@@ -1653,6 +1653,8 @@
|
||
|
<GenerateDebugInfo Value="False"/>
|
||
|
</Debugging>
|
||
|
<Options>
|
||
|
+ <PassLinkerOptions Value="True"/>
|
||
|
+ <LinkerOptions Value="-pie"/>
|
||
|
<Win32>
|
||
|
<GraphicApplication Value="True"/>
|
||
|
</Win32>
|