diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-08-15 10:14:02 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-08-15 10:14:02 +0200 |
commit | 2db3e1428a31b7c90cbcb9e5eaef90e44d64d97c (patch) | |
tree | d7205b048f97183d78dcbbe191127661cb51a092 /cmake/mingw-w64.cmake | |
parent | 7cde5013b510d997c8048512f44d87e854480bd0 (diff) |
cmake: allow ASLR
Diffstat (limited to 'cmake/mingw-w64.cmake')
-rw-r--r-- | cmake/mingw-w64.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmake/mingw-w64.cmake b/cmake/mingw-w64.cmake index 1566eac0..f951f93e 100644 --- a/cmake/mingw-w64.cmake +++ b/cmake/mingw-w64.cmake @@ -43,14 +43,14 @@ set(bloat "-fno-exceptions -fno-rtti") set(sections "-ffunction-sections -fdata-sections") set(_CFLAGS "-fvisibility=hidden") -set(_CXXFLAGS "${bloat} ${_CFLAGS}") +set(_CXXFLAGS "${bloat} ${_CFLAGS} -std=c++14") set(_CFLAGS_RELEASE "-s ${cpu} ${fpu} ${lto} ${sections}") set(_CFLAGS_DEBUG "-g -O0 -fstack-protector-strong") set(_CXXFLAGS_RELEASE "${_CFLAGS_RELEASE}") set(_CXXFLAGS_DEBUG "${_CFLAGS_DEBUG}") -set(_LDFLAGS "") -set(_LDFLAGS_RELEASE "-Wl,--no-seh,--gc-sections,--exclude-libs,ALL,--as-needed,--nxcompat") +set(_LDFLAGS "-Wl,--dynamicbase,--no-seh,--nxcompat,--as-needed") +set(_LDFLAGS_RELEASE "-Wl,--gc-sections,--exclude-libs,ALL -ffunction-sections") set(_LDFLAGS_DEBUG "") set(enable-val FALSE) |