# HG changeset patch
# User Mike Hansen <mhansen@gmail.com>
# Date 1332998212 25200
# Node ID c5321f6cd61c9e66e60e0817d7285110acdfb543
# Parent  4a70ec98d93b55543c9b7b1bd0c559e689d821ae
#9914: Remove libraries from extension modules when they are not needed there at build time

diff --git a/module_list.py b/module_list.py
--- a/module_list.py
+++ b/module_list.py
@@ -612,10 +612,7 @@
                             "marith.h","htconst.h","interface.h"]
                         ],
               libraries = ["curvesntl", "g0nntl", "jcntl", "rankntl",
-                           "ntl", "gmp", "gmpxx", "stdc++", "m", "pari"]),
-                         # IMHO "pari" could be removed here, but some people
-                         # claim it is needed on Cygwin (see #9896, #9914).
-                         # If so, we should use uname_specific(). -leif
+                           "ntl", "gmp", "gmpxx", "stdc++", "m"]),
     
     Extension('sage.libs.pari.gen',
               sources = ["sage/libs/pari/gen.pyx"],
@@ -705,10 +702,7 @@
     Extension('sage.libs.cremona.homspace',
               sources = ["sage/libs/cremona/homspace.pyx"],
               libraries = ['g0nntl', 'jcntl', 'gmpxx', 'ntl', 'gmp',
-                           'm', 'stdc++', 'pari', 'curvesntl'],
-                         # IMHO "pari" could be removed here, but some people
-                         # claim it is needed on Cygwin (see #9896, #9914).
-                         # If so, we should use uname_specific(). -leif
+                           'm', 'stdc++', 'curvesntl'],
               language='c++',
               define_macros = [("NTL_ALL",None)],
               depends = [ SAGE_INC + "eclib/" + h for h in
@@ -730,10 +724,7 @@
     Extension('sage.libs.cremona.newforms',
               sources = ["sage/libs/cremona/newforms.pyx"],
               libraries = ['g0nntl', 'jcntl', 'gmpxx', 'ntl', 'gmp',
-                           'm', 'stdc++', 'pari', 'curvesntl'],
-                         # IMHO "pari" could be removed here, but some people
-                         # claim it is needed on Cygwin (see #9896, #9914).
-                         # If so, we should use uname_specific(). -leif
+                           'm', 'stdc++', 'curvesntl'],
               language='c++',
               define_macros = [("NTL_ALL",None)],
               depends = [ SAGE_INC + "eclib/" + h for h in
