msys: don't use LTO

This causes duplicate symbol errors on msys' mingw install.
This commit is contained in:
Ben Boeckel 2014-11-17 18:10:52 -05:00
parent 5680c9cac7
commit 18c56abe4b
1 changed files with 2 additions and 0 deletions

View File

@ -158,6 +158,8 @@ else()
set(MINGW_FLAG "${MINGW_FLAG} -DWIN32_LEAN_AND_MEAN")
set(Boost_THREADAPI win32)
include_directories(SYSTEM src/platform/mingw)
# mingw doesn't support LTO (multiple definition errors at link time)
set(USE_LTO_DEFAULT false)
endif()
set(C_WARNINGS "-Waggregate-return -Wnested-externs -Wold-style-definition -Wstrict-prototypes")
set(CXX_WARNINGS "-Wno-reorder -Wno-missing-field-initializers")