> On 28/03/2017, at 21:04, Dima Pasechnik <dimp...@gmail.com> wrote:
> 
> 
> 
> On Tuesday, March 28, 2017 at 8:32:53 AM UTC+1, Jeroen Demeyer wrote:
> On 2017-03-27 23:15, François Bissey wrote: 
> > The generated sage/ext/interpreters/wrapper_cdf.pxd has the following 
> > statement: 
> > cimport sage.libs.cypari2.types 
> > 
> > That would pull `-lpari`. 
> 
> That's not actually true. Just using the *types* from PARI doesn't need 
> linking against PARI. It's cysignals which pulls -lpari. 
> 
> > To add `-lm` you would have to add 
> > a line 
> > #distutils: libraries = m 
> > at the top of the same .pxd file 
> 
> Actually, the .pyx file. If something is needed for the .pxd file, the 
> "# distutils" declaration should be in the .pxd file. But this is not 
> the case here, so it should be in the .pyx file. 
> 
> Thanks.
> Does such  "#distutils: libraries = blah " automatically imply that libblah 
> from $SAGE_LOCAL/lib/ will be linked?
>  

Unless you add -L$some_path, it should be the first one tried. If it is not 
found or
incompatible, system paths will be tried.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to