From f3f664b6dd8181c079a7c495390063336396532e Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Thu, 21 Aug 2008 17:45:38 +0200 Subject: Mark stack as not executable, fixes SELinux issues http://bugs.freepascal.org/view.php?id=11563 --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 439665b..5b5ca89 100644 --- a/Makefile +++ b/Makefile @@ -39,7 +39,8 @@ LIB_SUFFIX=`if test \`uname -m\` = x86_64; then echo 64; fi` # -CR and -Cr must be disabled here, causes range check errors with gnome-power-manager # -Cg generates internal compiler errors on i386 # -XX prevents linking errors of unresolved and unused symbols -CFLAGS= -vweh -Un -Ci -Co -XX +# "-k-z noexecstack" (with quotes as a single parameter) avoids marking stack as executable, allowing to work correctly with SELinux in Enforcing mode +CFLAGS= -vweh -Un -Ci -Co -XX "-k-z noexecstack" -- cgit v1.2.3