Index: libcfa/src/concurrency/kernel/startup.cfa
===================================================================
--- libcfa/src/concurrency/kernel/startup.cfa	(revision 7a70fb209bce29c380785c7ae281c74ad784cca6)
+++ libcfa/src/concurrency/kernel/startup.cfa	(revision 2daea4282d2ee75ad195248c7c7f9c95b79e4379)
@@ -118,4 +118,5 @@
 
 extern size_t __page_size;
+extern int __map_prot;
 
 //-----------------------------------------------------------------------------
@@ -727,5 +728,5 @@
 		__cfaabi_dbg_debug_do(
 			// pthread has no mechanism to create the guard page in user supplied stack.
-			if ( mprotect( stack, __page_size, PROT_READ | PROT_WRITE ) == -1 ) {
+			if ( mprotect( stack, __page_size, __map_prot ) == -1 ) {
 				abort( "mprotect : internal error, mprotect failure, error(%d) %s.", errno, strerror( errno ) );
 			} // if
