rm module for static linking; fixes #134
This commit is contained in:
parent
84b330e419
commit
33dc63c6bc
@ -10,7 +10,7 @@ addons:
|
|||||||
- g++
|
- g++
|
||||||
- gfortran
|
- gfortran
|
||||||
- cmake
|
- cmake
|
||||||
# Math libraries : SYSTEM_NATIVE-static/dynamic and ATLAS-dynamic only
|
# Math libraries
|
||||||
# do not install libatlas-dev due to conflicts of repeating xerbla in *.a lib files
|
# do not install libatlas-dev due to conflicts of repeating xerbla in *.a lib files
|
||||||
- libblas-dev
|
- libblas-dev
|
||||||
- liblapack-dev
|
- liblapack-dev
|
||||||
|
@ -1,42 +0,0 @@
|
|||||||
#.rst:
|
|
||||||
#
|
|
||||||
# Enables static linking by appending corresponding compiler flags.
|
|
||||||
#
|
|
||||||
# Variables modified (provided the corresponding language is enabled)::
|
|
||||||
#
|
|
||||||
# CMAKE_Fortran_FLAGS
|
|
||||||
# CMAKE_C_FLAGS
|
|
||||||
# CMAKE_CXX_FLAGS
|
|
||||||
#
|
|
||||||
# autocmake.cfg configuration::
|
|
||||||
#
|
|
||||||
# docopt: --static Enable static linking [default: False].
|
|
||||||
# define: '-DENABLE_STATIC_LINKING=%s' % arguments['--static']
|
|
||||||
|
|
||||||
option(ENABLE_STATIC_LINKING "Enable static libraries linking" OFF)
|
|
||||||
|
|
||||||
if(ENABLE_STATIC_LINKING)
|
|
||||||
if(DEFINED CMAKE_Fortran_COMPILER_ID)
|
|
||||||
if(CMAKE_Fortran_COMPILER_ID MATCHES GNU)
|
|
||||||
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -static")
|
|
||||||
endif()
|
|
||||||
if(CMAKE_Fortran_COMPILER_ID MATCHES Intel)
|
|
||||||
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -static -static-libgcc -static-intel")
|
|
||||||
endif()
|
|
||||||
if(CMAKE_Fortran_COMPILER_ID MATCHES PGI)
|
|
||||||
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -Bstatic")
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(DEFINED CMAKE_C_COMPILER_ID)
|
|
||||||
if(CMAKE_C_COMPILER_ID MATCHES GNU)
|
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -static -fpic")
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(DEFINED CMAKE_CXX_COMPILER_ID)
|
|
||||||
if(CMAKE_C_COMPILER_ID MATCHES GNU)
|
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static -fpic")
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
endif()
|
|
Loading…
x
Reference in New Issue
Block a user