]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
gawk: Proper build with PIE
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 11 Mar 2023 13:46:58 +0000 (14:46 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 13 Mar 2023 10:22:55 +0000 (10:22 +0000)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
gawk/gawk.nm

index 5060b170414d20c32fb98ba7ec3b79cb6f088257..0e544ee70af19a2c7cbb4fc0b4a974a7e6009ad9 100644 (file)
@@ -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