cmake: Check for HAVE_GCC_VOLATILE_MEMORY_PROTECTION.

This ensures that the memset call is not optimized out by the compiler
(works works with gcc and clang).
This commit is contained in:
Andreas Schneider
2013-07-22 10:18:33 +02:00
parent 5145daba69
commit 1829e9981b
3 changed files with 49 additions and 2 deletions

View File

@@ -126,6 +126,8 @@
#cmakedefine HAVE_GCC_THREAD_LOCAL_STORAGE 1
#cmakedefine HAVE_MSC_THREAD_LOCAL_STORAGE 1
#cmakedefine HAVE_GCC_VOLATILE_MEMORY_PROTECTION 1
/* Define to 1 if you want to enable GSSAPI */
#cmakedefine WITH_GSSAPI 1