* [PATCH] gettext: Fix hardening for some binaries.
@ 2023-03-11 13:29 Stefan Schantl
0 siblings, 0 replies; only message in thread
From: Stefan Schantl @ 2023-03-11 13:29 UTC (permalink / raw)
To: development
[-- Attachment #1: Type: text/plain, Size: 799 bytes --]
Signed-off-by: Stefan Schantl <stefan.schantl(a)ipfire.org>
---
gettext/gettext.nm | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/gettext/gettext.nm b/gettext/gettext.nm
index 264eb2db0..1e2af67f7 100644
--- a/gettext/gettext.nm
+++ b/gettext/gettext.nm
@@ -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
--
2.30.2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-11 13:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-11 13:29 [PATCH] gettext: Fix hardening for some binaries Stefan Schantl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox