summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-11-19 14:16:35 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-11-19 14:16:35 +0100
commite7fb0dce334fdb88470aaaaca63c2694cd05f847 (patch)
treee37d0e8b7dadc865736eda1e08e67140cf64ed5f /cmake
parentb47b4debd380a8762e0a35810ab219765b82935d (diff)
fix build further
Diffstat (limited to 'cmake')
-rw-r--r--cmake/mingw-w64.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/mingw-w64.cmake b/cmake/mingw-w64.cmake
index bace1357..ee82c79f 100644
--- a/cmake/mingw-w64.cmake
+++ b/cmake/mingw-w64.cmake
@@ -20,6 +20,8 @@ SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
set(CMAKE_C_FLAGS_RELEASE "-O3 -ffast-math -flto -fno-use-linker-plugin -march=i686 -mtune=prescott -msse -msse2 -mno-sse3 -mno-avx -frename-registers" CACHE STRING "" FORCE)
+set(CMAKE_SHARED_LINKER_FLAGS_RELEASE "-msse -msse2 -mno-sse3 -mno-avx -fno-use-linker-plugin -flto" CACHE STRING "" FORCE)
+set(CMAKE_EXE_LINKER_FLAGS_RELEASE ${CMAKE_SHARED_LINKER_FLAGS_RELEASE})
set(CMAKE_CXX_FLAGS_RELEASE ${CMAKE_C_FLAGS_RELEASE} CACHE STRING "" FORCE)
set(CMAKE_BUILD_TYPE "RELEASE" CACHE STRING "" FORCE)