summaryrefslogtreecommitdiff
path: root/libre/sagemath/c_lib.patch
blob: 6df7b8efa91988abdefcf78f6cfb68baf389b38e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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