Skip to content

Commit 9b1292f

Browse files
committed
Remove -flto flag for GCC optimize=on. Apparently causes trouble with gcc 5.4
1 parent 5d4bd30 commit 9b1292f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ if(CMAKE_Fortran_COMPILER_ID STREQUAL GNU)
126126
list(APPEND ldflags -pg)
127127
endif()
128128
if(optimize)
129-
list(APPEND f90flags -O3 -flto -fuse-linker-plugin)
129+
list(APPEND f90flags -O3)
130130
list(APPEND cflags -O3)
131131
endif()
132132
if(openmp)

0 commit comments

Comments
 (0)