diff options
author | xiphon <xiphon@protonmail.com> | 2018-10-04 00:01:09 +0000 |
---|---|---|
committer | xiphon <xiphon@protonmail.com> | 2018-10-04 00:01:09 +0000 |
commit | 02d3ef7bdae7d1dd7a9a6f4fee24631cf9403278 (patch) | |
tree | 3892e9302e654cab76eb29ac0cf02a72b40c9ad6 /CMakeLists.txt | |
parent | Merge pull request #4485 (diff) | |
download | monero-02d3ef7bdae7d1dd7a9a6f4fee24631cf9403278.tar.xz |
blocks: use auto-generated .c files instead of 'LD -r -b binary'
Diffstat (limited to '')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c31c14350..829a7e96c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -180,6 +180,9 @@ set(PER_BLOCK_CHECKPOINT 1) if(PER_BLOCK_CHECKPOINT) add_definitions("-DPER_BLOCK_CHECKPOINT") + set(Blocks "blocks") +else() + set(Blocks "") endif() list(INSERT CMAKE_MODULE_PATH 0 @@ -655,12 +658,10 @@ else() add_linker_flag_if_supported(-Wl,-z,noexecstack noexecstack_SUPPORTED) if (noexecstack_SUPPORTED) set(LD_SECURITY_FLAGS "${LD_SECURITY_FLAGS} -Wl,-z,noexecstack") - set(LD_RAW_FLAGS ${LD_RAW_FLAGS} -z noexecstack) endif() add_linker_flag_if_supported(-Wl,-z,noexecheap noexecheap_SUPPORTED) if (noexecheap_SUPPORTED) set(LD_SECURITY_FLAGS "${LD_SECURITY_FLAGS} -Wl,-z,noexecheap") - set(LD_RAW_FLAGS ${LD_RAW_FLAGS} -z noexecheap) endif() # some windows linker bits |