summarylogtreecommitdiffstats
path: root/fix_ssl_check.patch
blob: 106ad43a8b369eccbf22f3014a10011dcbf310e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -484,6 +484,8 @@
 # a small test program checking the defines. This works for both Qt4 and Qt5.
 cmake_push_check_state(RESET)
 set(CMAKE_REQUIRED_INCLUDES ${QT_INCLUDES} ${Qt5Core_INCLUDE_DIRS})
+set(CMAKE_POSITION_INDEPENDENT_CODE)
+set(CMAKE_REQUIRED_FLAGS "-fPIC")
 check_cxx_source_compiles("
     #include \"qglobal.h\"
     #if defined QT_NO_OPENSSL || defined QT_NO_SSL