noexecutestack object files generation fixed
authordisplacer
Tue, 21 Nov 2006 16:50:09 +0000
changeset 256 48aeb69ef572
parent 255 97b2d242e2a1
child 257 7be02e84fc68
noexecutestack object files generation fixed
hedgewars/CMakeLists.txt
--- a/hedgewars/CMakeLists.txt	Sun Nov 19 16:10:37 2006 +0000
+++ b/hedgewars/CMakeLists.txt	Tue Nov 21 16:50:09 2006 +0000
@@ -61,7 +61,7 @@
 			message("Minimum required version of FreePascal is 1.9.4")
 		else (fpc_ver LESS "010904")
 			set(pascal_compiler ${fpc_executable})
-			set(pascal_compiler_flags "-B" "-Sd" "-Xs" "-OG" "-O2" "-FE${EXECUTABLE_OUTPUT_PATH}" "-Cs2000000" ${hwengine_project})
+			set(pascal_compiler_flags "-k-z" "-knoexecstack" "-B" "-Sd" "-Xs" "-OG" "-O2" "-FE${EXECUTABLE_OUTPUT_PATH}" "-Cs2000000" ${hwengine_project})
 		endif (fpc_ver LESS "010904")
 	endif (fpc_version)
 endif (dcc32version)