summaryrefslogtreecommitdiffstats
path: root/configure.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'configure.cmake')
-rw-r--r--configure.cmake8
1 files changed, 6 insertions, 2 deletions
diff --git a/configure.cmake b/configure.cmake
index cfb1d58604..45f5ba0ef4 100644
--- a/configure.cmake
+++ b/configure.cmake
@@ -283,6 +283,7 @@ alloca(1);
# stack_protector
qt_config_compile_test(stack_protector
LABEL "stack protection"
+ COMPILE_OPTIONS -fstack-protector-strong
CODE
"#ifdef __QNXNTO__
# include <sys/neutrino.h>
@@ -300,8 +301,7 @@ int main(int argc, char **argv)
/* END TEST: */
return 0;
}
-"# FIXME: qmake: QMAKE_CXXFLAGS += -fstack-protector-strong
-)
+")
@@ -619,6 +619,10 @@ qt_feature("alloca" PRIVATE
LABEL "alloca()"
CONDITION QT_FEATURE_alloca_h OR QT_FEATURE_alloca_malloc_h OR TEST_alloca_stdlib_h
)
+qt_feature("stack-protector-strong" PRIVATE
+ LABEL "stack protection"
+ CONDITION QNX AND TEST_stack_protector
+)
qt_feature("system-zlib" PRIVATE
LABEL "Using system zlib"
CONDITION ZLIB_FOUND