#17682: Generic filename extension for shared libraries
-------------------------------------+-------------------------------------
       Reporter:  gouezel            |        Owner:
           Type:  defect             |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.5
      Component:  porting: Cygwin    |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Sebastien Gouezel  |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/gouezel/dll_extension            |  db7df5c13b7c57272f0cc262c89d80a632c878ef
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by gouezel):

 Replying to [comment:8 jakobkroeker]:

 Short answer: the code you show is fine, no need to change anything.

 Long answer: shared libraries usually have the extension `.so` on unix-
 likes. So, some parts of sage's code assume that this is a universal
 extension, and use it for loading or doctesting purposes. This leads to
 problems on cygwin, where the extension is `.dll`. The patch fixes this
 code, replacing the universal `.so` with an extension depending on the
 platform (`.dll` on windows, `.so`anywhere else). Code that already
 considered the possibility of different extensions is fine.

 There is yet another difference on MacOS, where the extension for shared
 libraries can be `.so` or `.dylib` -- this means that, in this case, there
 is no universal possible choice, so I picked `.so` since it is the most
 common in sage. In the case of libsingular, I don't know if it is built
 using `.so` or `.dylib` (and I don't have a Mac to test). If it is `.so`,
 one might consider using the patch to predict the correct extension, but
 in any case the current code works fine.

--
Ticket URL: <http://trac.sagemath.org/ticket/17682#comment:9>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to