gawk: Proper build with PIE
Commit Message
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
gawk/gawk.nm | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
@@ -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