Signed-off-by: Stefan Schantl <stefan.schantl(a)ipfire.org>
---
 gawk/gawk.nm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

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
-- 
2.30.2