mirror of
https://src.fedoraproject.org/rpms/sagemath.git
synced 2025-04-22 19:55:54 -04:00
This commit is contained in:
parent
a01b66314d
commit
3aee88cf4c
2 changed files with 63 additions and 5 deletions
47
sagemath-flexiblas.patch
Normal file
47
sagemath-flexiblas.patch
Normal file
|
@ -0,0 +1,47 @@
|
|||
diff -up src/module_list.py.orig src/module_list.py
|
||||
--- src/module_list.py.orig 2019-10-03 16:51:55.350850836 -0300
|
||||
+++ src/module_list.py 2019-10-03 16:52:06.479917297 -0300
|
||||
@@ -11,20 +11,17 @@ SAGE_INC = '/usr/include'
|
||||
import pkgconfig
|
||||
|
||||
# CBLAS can be one of multiple implementations
|
||||
-cblas_pc = pkgconfig.parse('cblas')
|
||||
-cblas_libs = cblas_pc['libraries']
|
||||
-cblas_library_dirs = cblas_pc['library_dirs']
|
||||
-cblas_include_dirs = cblas_pc['include_dirs']
|
||||
+cblas_libs = ['flexiblas']
|
||||
+cblas_library_dirs = ['/usr/lib']
|
||||
+cblas_include_dirs = ['/usr/include/flexiblas']
|
||||
|
||||
# TODO: Remove Cygwin hack by installing a suitable cblas.pc
|
||||
if os.path.exists('/usr/lib/libblas.dll.a'):
|
||||
cblas_libs = ['gslcblas']
|
||||
|
||||
-# LAPACK can be one of multiple implementations
|
||||
-lapack_pc = pkgconfig.parse('lapack')
|
||||
-lapack_libs = lapack_pc['libraries']
|
||||
-lapack_library_dirs = lapack_pc['library_dirs']
|
||||
-lapack_include_dirs = lapack_pc['include_dirs']
|
||||
+lapack_libs = [ 'flexiblas' ]
|
||||
+lapack_library_dirs = ['/usr/lib']
|
||||
+lapack_include_dirs = ['/usr/include/flexiblas']
|
||||
|
||||
# GD image library
|
||||
gd_pc = pkgconfig.parse('gdlib')
|
||||
diff -up src/sage/misc/cython.py.orig src/sage/misc/cython.py
|
||||
--- src/sage/misc/cython.py.orig 2019-10-03 16:51:42.848776173 -0300
|
||||
+++ src/sage/misc/cython.py 2019-10-03 16:52:06.480917303 -0300
|
||||
@@ -35,10 +35,9 @@ from sage.misc.sage_ostools import resto
|
||||
|
||||
|
||||
# CBLAS can be one of multiple implementations
|
||||
-cblas_pc = pkgconfig.parse('cblas')
|
||||
-cblas_libs = list(cblas_pc['libraries'])
|
||||
-cblas_library_dirs = list(cblas_pc['library_dirs'])
|
||||
-cblas_include_dirs = list(cblas_pc['include_dirs'])
|
||||
+cblas_libs = ['flexiblas']
|
||||
+cblas_library_dirs = ['/usr/lib']
|
||||
+cblas_include_dirs = ['/usr/include/flexiblas']
|
||||
|
||||
standard_libs = [
|
||||
'mpfr', 'gmp', 'gmpxx', 'stdc++', 'pari', 'm',
|
Loading…
Add table
Add a link
Reference in a new issue