gettext: Fix hardening for some binaries.
Commit Message
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
gettext/gettext.nm | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
@@ -5,7 +5,7 @@
name = gettext
version = 0.21.1
-release = 2.1
+release = 3
groups = System/Base
url = https://www.gnu.org/software/gettext/
@@ -44,6 +44,13 @@ build
--enable-shared \
--disable-rpath
+ configure_cmds
+ # Add additional compiler flages to build gettext-tools binaries with
+ # proper hardening.
+ sed -i '/^CFLAGS =/ s/$/ -fno-builtin-exit -D__noreturn__=/' \
+ %{DIR_APP}/gettext-tools/src/Makefile
+ end
+
test
make check || :
end