#16105: Stop linking everything to libntl
-------------------------------------------------+-------------------------
Reporter: darij | Owner:
Type: defect | Status: closed
Priority: blocker | Milestone: sage-6.2
Component: build | Resolution: fixed
Keywords: ntl, crash | Merged in:
Authors: Jeroen Demeyer | Reviewers: Volker
Report Upstream: N/A | Braun
Branch: | Work issues:
2770a55d98ddb44edb113207e00c502baf30acb6 | Commit:
Dependencies: | Stopgaps:
-------------------------------------------------+-------------------------
Comment (by leif):
Replying to [comment:41 fbissey]:
> I'll admit I am not sure about cygwin. I am fairly confident that it
will work on OS X on the other hand.
Well, for MacOS X 10.4 at least, ''provided the `install_name`s are
correct'', as you know...
[[BR]]
> As for stdc++, yes my comment assume that g++ is used, which I am
expecting to be the case for anything that is marked "language=c++". I
haven't checked that cython always uses g++ (or the C++ compiler du jour)
for c++ but I would be baffled if it didn't (unless expressly instructed
to use something else).
There at least used to be times where that was not the case (years ago, I
admit). Another problem is (or was) that the sources of a module may
consist of both C and C++ files (although you'd actually just need `g++`
''for linking'' unless you explicitly specify `-lstdc++`, modulo probably
different include paths), but there's just one `language` tag per
extension module. Compiling C99 sources as if they were C++ with a C++98
compiler also caused a lot of trouble in the past.
[[BR]]
(Also `--as-needed` didn't work when I tried about four years ago, IIRC
due to some implicit assumptions on the import order. I wasted a few
weeks removing and adding libraries in `module_list.py`, when Robert B.
told me the mechanism was subject to change on the Cython side anyway, so
I didn't pursue that further.)
--
Ticket URL: <http://trac.sagemath.org/ticket/16105#comment:43>
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.