CMake knows how to create PIC

This commit is contained in:
Adam J. Stewart 2016-06-10 14:35:19 -05:00
parent 65896ff2ed
commit 85502e34f9

View file

@ -39,8 +39,7 @@ class Superlu(Package):
def install(self, spec, prefix):
cmake_args = [
'-DCMAKE_C_FLAGS=-fPIC',
'-DCMAKE_Fortran_FLAGS=-fPIC',
'-DCMAKE_POSITION_INDEPENDENT_CODE=ON',
# BLAS support
'-Denable_blaslib=OFF',
'-DBLAS_blas_LIBRARY={0}'.format(spec['blas'].blas_shared_lib)