Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Added static linking of gfortran and gcc libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
MintoDA1 authored and MintoDA1 committed Aug 1, 2023
1 parent 4d3211b commit 05a00cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/Modules/SetFortranFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ IF (NOT BUILD_SHARED_LIBS)
# Use static Intel libraries
SET_COMPILE_FLAG(CMAKE_Fortran_LINK_FLAGS "${CMAKE_Fortran_LINK_FLAGS}"
Fortran "-static-intel" # Intel
"-static-libgfortran -static-libgcc" # GNU
)
# Use static Intel MPI libraries
SET_COMPILE_FLAG(CMAKE_Fortran_LINK_FLAGS "${CMAKE_Fortran_LINK_FLAGS}"
Expand Down

0 comments on commit 05a00cb

Please sign in to comment.