diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2020-05-14 16:06:39 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2020-05-14 16:06:39 -0500 |
| commit | c20a0ef9284b7b82fc144652d11a483eec046be6 (patch) | |
| tree | 1904c9206d799dbb48bed446d27b20c2cfb140cd | |
| parent | eab98e3a486a5169465ee713650ffccfd758fed5 (diff) | |
| parent | 210248e6ef9e31d78ae0afccb8ab22bb4e953650 (diff) | |
| download | monzero-gui-c20a0ef9284b7b82fc144652d11a483eec046be6.tar.gz monzero-gui-c20a0ef9284b7b82fc144652d11a483eec046be6.tar.xz monzero-gui-c20a0ef9284b7b82fc144652d11a483eec046be6.zip | |
Merge pull request #2908
210248e cmake: disable '-pie' on Win with gcc (xiphon)
| -rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6a5444ec..a6e30f13 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -369,8 +369,8 @@ if (NOT (CMAKE_C_COMPILER_ID STREQUAL "GNU" AND NOT CMAKE_C_COMPILER_VERSION VER endif() # linker -if (NOT (WIN32 AND (CMAKE_C_COMPILER_ID STREQUAL "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_LESS 9.1))) - # Windows binaries die on startup with PIE when compiled with GCC <9.x +if (NOT (WIN32 AND CMAKE_C_COMPILER_ID STREQUAL "GNU")) + # Windows binaries die on startup with PIE when compiled with GCC add_linker_flag_if_supported(-pie LD_SECURITY_FLAGS) endif() add_linker_flag_if_supported(-Wl,-z,relro LD_SECURITY_FLAGS) |
