Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrockihack <rocki.hack@gmail.com>2017-09-04 14:42:20 +0300
committerMarkus Goetz <markus@woboq.com>2017-09-11 12:18:18 +0300
commit6f270a364895d7f1f0a424c8347cd2913971cca4 (patch)
tree7848ffb8482fb19a1307a2782ddcdf0a8622164d /src/CMakeLists.txt
parent8be2aaa751f03088efc5600be1d20adc732526b3 (diff)
Enable DEP & ASLR on Windows
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index f871836cf..2133b6c2e 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -8,6 +8,12 @@ if(NOT TOKEN_AUTH_ONLY)
find_package(Qt5Keychain REQUIRED)
endif()
+if(WIN32)
+ # Enable DEP & ASLR
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--nxcompat -Wl,--dynamicbase")
+ set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--nxcompat -Wl,--dynamicbase")
+endif()
+
add_subdirectory(csync)
add_subdirectory(libsync)
if (NOT BUILD_LIBRARIES_ONLY)