Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #337 from Tilka/lto
Fix LTO with GCC 4.9
  • Loading branch information
Sonicadvance1 committed Jun 7, 2014
2 parents 28c8802 + e22be59 commit b7519fd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Expand Up @@ -212,6 +212,10 @@ endif()

if(ENABLE_LTO)
check_and_add_flag(LTO -flto)
if(CMAKE_CXX_COMPILER_ID STREQUAL GNU)
set(CMAKE_AR gcc-ar)
set(CMAKE_RANLIB gcc-ranlib)
endif()
endif()

if(APPLE)
Expand Down

0 comments on commit b7519fd

Please sign in to comment.