diff options
Diffstat (limited to 'cmake/mingw-w64.cmake')
-rw-r--r-- | cmake/mingw-w64.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/mingw-w64.cmake b/cmake/mingw-w64.cmake index b97408b0..61bfa524 100644 --- a/cmake/mingw-w64.cmake +++ b/cmake/mingw-w64.cmake @@ -41,14 +41,14 @@ set(fpu "-ffast-math -mfpmath=both -mstackrealign -ftree-vectorize") set(cpu "-O3 -march=pentium4 -mtune=corei7-avx -msse -msse2 -mno-sse3 -mno-avx -frename-registers -fno-PIC") set(lto "-flto -fuse-linker-plugin -flto-compression-level=3 -flto-partition=balanced -fno-ipa-pta") -set(_CFLAGS " -fvisibility=hidden ") +set(_CFLAGS " -fvisibility=hidden") set(_CXXFLAGS "${_CFLAGS}") set(_CFLAGS_RELEASE "-s ${cpu} ${fpu} ${lto}") set(_CFLAGS_DEBUG "-g -ggdb") set(_CXXFLAGS_RELEASE "${_CFLAGS_RELEASE}") set(_CXXFLAGS_DEBUG "${_CFLAGS_DEBUG}") -set(_LDFLAGS "-Wl,--as-needed") +set(_LDFLAGS "-Wl,--as-needed -Wl,--nxcompat,--no-seh") set(_LDFLAGS_RELEASE "") set(_LDFLAGS_DEBUG "") |