From 4ca87806591ddb110edccd91e7b581c40a1beb72 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Wed, 20 Aug 2008 14:25:46 +0200 Subject: Always use smartlinking to prevent unresolved symbols messages --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index cd72bc1..439665b 100644 --- a/Makefile +++ b/Makefile @@ -38,7 +38,8 @@ LIB_SUFFIX=`if test \`uname -m\` = x86_64; then echo 64; fi` # -Ct must be disabled here, causes unneeded crashes # -CR and -Cr must be disabled here, causes range check errors with gnome-power-manager # -Cg generates internal compiler errors on i386 -CFLAGS= -vweh -Un -Ci -Co +# -XX prevents linking errors of unresolved and unused symbols +CFLAGS= -vweh -Un -Ci -Co -XX -- cgit v1.2.3 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(-) (limited to 'Makefile') 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