forked from pool/peazip
8f52b50548
- Added peazip-build_PIE.patch to produce position independent executables OBS-URL: https://build.opensuse.org/request/show/575385 OBS-URL: https://build.opensuse.org/package/show/devel:languages:pascal/peazip?expand=0&rev=27
47 lines
1.5 KiB
Diff
47 lines
1.5 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-6.5.0.src/project_pea.lpi
|
|
===================================================================
|
|
--- peazip-6.5.0.src.orig/project_pea.lpi
|
|
+++ peazip-6.5.0.src/project_pea.lpi
|
|
@@ -485,6 +485,8 @@
|
|
<GenerateDebugInfo Value="False"/>
|
|
</Debugging>
|
|
<Options>
|
|
+ <PassLinkerOptions Value="True"/>
|
|
+ <LinkerOptions Value="-pie"/>
|
|
<Win32>
|
|
<GraphicApplication Value="True"/>
|
|
</Win32>
|
|
Index: peazip-6.5.0.src/project_peach.lpi
|
|
===================================================================
|
|
--- peazip-6.5.0.src.orig/project_peach.lpi
|
|
+++ peazip-6.5.0.src/project_peach.lpi
|
|
@@ -1320,6 +1320,8 @@
|
|
<GenerateDebugInfo Value="False"/>
|
|
</Debugging>
|
|
<Options>
|
|
+ <PassLinkerOptions Value="True"/>
|
|
+ <LinkerOptions Value="-pie"/>
|
|
<Win32>
|
|
<GraphicApplication Value="True"/>
|
|
</Win32>
|
|
Index: peazip-6.5.0.src/project_gwrap.lpi
|
|
===================================================================
|
|
--- peazip-6.5.0.src.orig/project_gwrap.lpi
|
|
+++ peazip-6.5.0.src/project_gwrap.lpi
|
|
@@ -458,6 +458,8 @@
|
|
<GenerateDebugInfo Value="False"/>
|
|
</Debugging>
|
|
<Options>
|
|
+ <PassLinkerOptions Value="True"/>
|
|
+ <LinkerOptions Value="-pie"/>
|
|
<Win32>
|
|
<GraphicApplication Value="True"/>
|
|
</Win32>
|