summaryrefslogtreecommitdiff
path: root/libre/sagemath/c_lib.patch
diff options
context:
space:
mode:
Diffstat (limited to 'libre/sagemath/c_lib.patch')
-rw-r--r--libre/sagemath/c_lib.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/libre/sagemath/c_lib.patch b/libre/sagemath/c_lib.patch
new file mode 100644
index 000000000..6df7b8efa
--- /dev/null
+++ b/libre/sagemath/c_lib.patch
@@ -0,0 +1,17 @@
+--- src/setup.py.orig 2014-11-01 23:49:10.000000000 +0100
++++ src/setup.py 2014-11-07 00:40:58.414838636 +0100
+@@ -171,10 +171,12 @@
+ m.libraries = ['csage'] + m.libraries
+ if m.language == 'c++':
+ m.libraries.append('stdc++')
++ m.libraries.append('ntl')
++ m.libraries = m.libraries + ['gmp', 'm', 'dl']
+
+ m.extra_compile_args = m.extra_compile_args + extra_compile_args
+ m.extra_link_args = m.extra_link_args + extra_link_args
+- m.library_dirs = m.library_dirs + [os.path.join(SAGE_LOCAL, "lib")]
++ m.library_dirs += ['c_lib', '%s/lib' % SAGE_LOCAL]
+ m.include_dirs = m.include_dirs + include_dirs
+
+
+