CMake knows how to create PIC
This commit is contained in:
parent
65896ff2ed
commit
85502e34f9
1 changed files with 1 additions and 2 deletions
|
@ -39,8 +39,7 @@ class Superlu(Package):
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
cmake_args = [
|
cmake_args = [
|
||||||
'-DCMAKE_C_FLAGS=-fPIC',
|
'-DCMAKE_POSITION_INDEPENDENT_CODE=ON',
|
||||||
'-DCMAKE_Fortran_FLAGS=-fPIC',
|
|
||||||
# BLAS support
|
# BLAS support
|
||||||
'-Denable_blaslib=OFF',
|
'-Denable_blaslib=OFF',
|
||||||
'-DBLAS_blas_LIBRARY={0}'.format(spec['blas'].blas_shared_lib)
|
'-DBLAS_blas_LIBRARY={0}'.format(spec['blas'].blas_shared_lib)
|
||||||
|
|
Loading…
Reference in a new issue