gawk: Proper build with PIE

Message ID 20230311134658.411444-1-stefan.schantl@ipfire.org
State Accepted
Commit 4f27435ee86a2b0446b54d6d8ddd19305a22f220
Headers
Series gawk: Proper build with PIE |

Commit Message

Stefan Schantl March 11, 2023, 1:46 p.m. UTC
  Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
 gawk/gawk.nm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
  

Patch

diff --git a/gawk/gawk.nm b/gawk/gawk.nm
index 5060b1704..0e544ee70 100644
--- a/gawk/gawk.nm
+++ b/gawk/gawk.nm
@@ -5,7 +5,7 @@ 
 
 name       = gawk
 version    = 5.2.1
-release    = 1
+release    = 2
 
 groups     = System/Tools
 url        = https://www.gnu.org/software/gawk/gawk.html
@@ -31,6 +31,12 @@  build
 	configure_options += \
 		--with-libsigsegv-prefix=no
 
+	prepare_cmds
+		# The config scripts checks if the used compiler accepts -no-pie and if
+		# yes, will set this as compile and linker flags - Change this to pie.
+		sed -i 's/-no-pie/-pie/g' configure
+	end
+
 	test
 		make check diffout
 	end