summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-06-27 06:48:02 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-06-27 06:48:02 +0200
commit460e418f0aa83063ff222296782364a07be9f97e (patch)
tree348b7afda6f04c7b845b7a1e47335158306b960b /cmake
parent973fefcc238ceda136e139be8de76ce8d73d0ce2 (diff)
cmake: backoff gcc 6.1.0 due to miscompilation
Issue: #375
Diffstat (limited to 'cmake')
-rw-r--r--cmake/mingw-w64.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmake/mingw-w64.cmake b/cmake/mingw-w64.cmake
index 8042881f..cc5a9b7d 100644
--- a/cmake/mingw-w64.cmake
+++ b/cmake/mingw-w64.cmake
@@ -7,7 +7,7 @@ SET(CMAKE_SYSTEM_NAME Windows)
SET(CMAKE_SYSTEM_VERSION 1)
# specify the cross compiler
-set(p C:/mingw-w64/i686-6.1.0-posix/bin)
+set(p C:/mingw-w64/i686-5.3.0-posix-dwarf-rt_v4-rev0/mingw32/bin)
set(c ${p}/i686-w64-mingw32-)
#set(CMAKE_MAKE_PROGRAM ${p}/mingw32-make.exe CACHE FILEPATH "" FORCE)
@@ -24,7 +24,7 @@ set(CMAKE_OBJCOPY ${c}objcopy${e} CACHE STRING "" FORCE)
set(CMAKE_OBJDUMP ${c}objdump${e} CACHE STRING "" FORCE)
set(CMAKE_STRIP ${c}strip${e} CACHE STRING "" FORCE)
-SET(CMAKE_FIND_ROOT_PATH /usr/i686-w64-mingw32)
+#SET(CMAKE_FIND_ROOT_PATH /usr/i686-w64-mingw32)
# search for programs in the host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
@@ -35,7 +35,7 @@ SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
# oldest CPU supported here is Northwood-based Pentium 4. -sh 20150811
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 -fno-fat-lto-objects -flto-partition=balanced -fipa-pta")
+set(lto "-flto -fuse-linker-plugin -flto-compression-level=3 -fno-fat-lto-objects -flto-partition=balanced -fno-ipa-pta")
set(_CFLAGS " -fvisibility=hidden ")
set(_CXXFLAGS "${_CFLAGS}")