#14038: Let libgap build a shared library on Cygwin
--------------------------------------+-------------------------------------
Reporter: jpflori | Owner: tbd
Type: defect | Status: needs_work
Priority: major | Milestone: sage-5.7
Component: packages | Resolution:
Keywords: cygwin spkg libgap | Work issues:
Report Upstream: N/A | Reviewers: Jean-Pierre Flori
Authors: Volker Braun | Merged in:
Dependencies: | Stopgaps:
--------------------------------------+-------------------------------------
Comment (by dimpase):
Replying to [comment:24 dimpase]:
> Replying to [comment:23 jpflori]:
> > Whatever, I guess that passing -no-undefined to libtool just overrides
its default behavior to pass -undefined dynamic_lookup to ld on OS X.
> >
> indeed.
>
> > So we have two solutions:
> > * only pass -no-undefined where it is really needed, that is on
Cygwin,
> > * use _NSGetEnviron() routine from <crt_externs.h> to define environ
on OS X.
>
> let us try to see if the latter is needed. My understanding is that
currently the corresponding part of GAP functionality
({{{ExecuteProcess()}}}) is not exposed, and/or not implemented, in
libGAP, and so it's not visible whether it is a bug to use -undefined
dynamic_lookup to get (or not?) {{{environ}}} on OSX.
My understanding from e.g. [http://www.mail-archive.com/bug-
[email protected]/msg09272.html this thread] is that {{{extern char**
environ}}} with {{{-no-undefined}}} for a shared library used with the OSX
ld and {{{_NSGetEnviron()}}} lead to equivalent results.
So it seems that to make this change non-OSX only, or Cygwin-only, is
right. AFAIK, Volker is currently away, so you can have a go at it
yourself if you have time.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14038#comment:25>
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.