#13799: cvxopt needs to link against gmp/mpir on 32-bit Windows XP Cygwin
----------------------------+-----------------------------------------------
       Reporter:  kcrisman  |         Owner:  tbd     
           Type:  defect    |        Status:  new     
       Priority:  major     |     Milestone:  sage-5.6
      Component:  cygwin    |    Resolution:          
       Keywords:            |   Work issues:          
Report Upstream:  N/A       |     Reviewers:          
        Authors:            |     Merged in:          
   Dependencies:            |      Stopgaps:          
----------------------------+-----------------------------------------------

Comment (by kcrisman):

 Maybe.  We do
 {{{
  # Set to 1 if you are installing the glpk module.
 -BUILD_GLPK = 0
 +BUILD_GLPK = 1
 }}}
 in setup.py.patch, and got rid of
 {{{
 - if BUILD_GLPK:
 --    glpk = Extension('glpk', libraries = ['glpk'],
 -+    glpk = Extension('glpk', libraries = libraries+['glpk', 'gmp', 'z'],
 -         include_dirs = [ GLPK_INC_DIR ],
 --        library_dirs = [ GLPK_LIB_DIR ],
 -+        library_dirs = libdirs + [ GLPK_LIB_DIR ],
 -         sources = ['C/glpk.c'] )
 -     extmods += [glpk];
 -
 }}}
 but Cygwin is notoriously finicky about extensions, so maybe we need to
 add this back in.  Have you seen any problems at all on Windows 7?  Maybe
 {{{

  # Directory containing libglpk (used only when BUILD_GLPK = 1).
 -GLPK_LIB_DIR = '/usr/lib'
 +GLPK_LIB_DIR = SAGE_LIB

  # Directory containing glpk.h (used only when BUILD_GLPK = 1).
 -GLPK_INC_DIR = '/usr/include'
 +GLPK_INC_DIR = SAGE_INCLUDE
 }}}
 is sufficient there, if those are even relevant here (are they where it is
 put, or where it looks for things it depends on?).

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13799#comment:2>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to