File nonexec-stack.patch of Package kvmtool

---
 Makefile |    5 +++++
 1 file changed, 5 insertions(+)

--- a/Makefile
+++ b/Makefile
@@ -333,6 +333,11 @@ WARNINGS += -Wwrite-strings
 
 CFLAGS	+= $(WARNINGS)
 
+LD_NOEXECSTACK = -Wl,-z,noexecstack
+
+LIBS_STATOPT += $(LD_NOEXECSTACK)
+LIBS_DYNOPT += $(LD_NOEXECSTACK)
+
 ifneq ($(WERROR),0)
 	CFLAGS += -Werror
 endif
openSUSE Build Service is sponsored by