Remove -flto flag for GCC optimize=on. Apparently causes trouble with gcc 5.4

This commit is contained in:
Paul Romano 2016-07-21 09:52:47 -05:00
parent 5d4bd3079c
commit 9b1292fc15

View file

@ -126,7 +126,7 @@ if(CMAKE_Fortran_COMPILER_ID STREQUAL GNU)
list(APPEND ldflags -pg)
endif()
if(optimize)
list(APPEND f90flags -O3 -flto -fuse-linker-plugin)
list(APPEND f90flags -O3)
list(APPEND cflags -O3)
endif()
if(openmp)