File azimuth-noexecstack.patch of Package azimuth

From 2727cbc105975d2da804304e6055ae0985882570 Mon Sep 17 00:00:00 2001
From: Christophe Marin <christophe@krop.fr>
Date: Fri, 6 Jun 2025 18:50:08 +0200
Subject: [PATCH] Build with 'noexecstack'

Fixes:
azimuth.x86_64: E: executable-stack (Badness: 10000) /usr/bin/azimuth
The binary declares the stack as executable. Executable stack is usually an
error as it is only needed if the code contains GCC trampolines or similar
constructs which uses code on the stack. One common source for needlessly
executable stack cases are object files built from assembler files which don't
define a proper .note.GNU-stack section.

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index b982af3..3ca4c9b 100644
--- a/Makefile
+++ b/Makefile
@@ -130,7 +130,7 @@ else ifeq "$(OS_NAME)" "Windows"
                     $(OBJDIR)/info.res
   ALL_TARGETS += windows_app
 else
-  MAIN_LIBFLAGS = -lm -lSDL -lGL
+  MAIN_LIBFLAGS = -lm -lSDL -lGL -Wl,-z,noexecstack
   TEST_LIBFLAGS = -lm
   MUSE_LIBFLAGS = -lm -lSDL
   SYSTEM_OBJFILES = $(OBJDIR)/azimuth/system/resource_blob.o \
-- 
2.49.0

openSUSE Build Service is sponsored by