peazip/peazip-build_PIE.patch
Paolo Stivanin 393f70eadf - Update to 10.1.0:
BACKEND
    * Pea 1.21, introduced scrypt KDF as default option to improve resilience to password guessing attacks (increasing memory cost per instance) over PBKDF2 implemented in previous versions
  CODE
    * Fixed "Ask before overwriting (in console)" extraction option, now correctly sets the app in console mode superseding other options
    * Fixed directory copy/move on Unix-like systems
  FILE MANAGER
    * GUI update
  EXTRACTION and ARCHIVING
    * Updated compression pre-sets

OBS-URL: https://build.opensuse.org/package/show/devel:languages:pascal/peazip?expand=0&rev=137
2024-11-12 12:29:48 +00:00

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-10.0.0.src/dev/project_pea.lpi
===================================================================
--- peazip-10.0.0.src.orig/dev/project_pea.lpi
+++ peazip-10.0.0.src/dev/project_pea.lpi
@@ -584,6 +584,8 @@
<DebugInfoType Value="dsDwarf3"/>
</Debugging>
<Options>
+ <PassLinkerOptions Value="True"/>
+ <LinkerOptions Value="-pie"/>
<Win32>
<GraphicApplication Value="True"/>
</Win32>
Index: peazip-10.0.0.src/dev/project_peach.lpi
===================================================================
--- peazip-10.0.0.src.orig/dev/project_peach.lpi
+++ peazip-10.0.0.src/dev/project_peach.lpi
@@ -1659,6 +1659,8 @@
<GenerateDebugInfo Value="False"/>
</Debugging>
<Options>
+ <PassLinkerOptions Value="True"/>
+ <LinkerOptions Value="-pie"/>
<Win32>
<GraphicApplication Value="True"/>
</Win32>