linking a python/cython exenstion to a specific dynamic library?

24 views
Skip to first unread message

Dima Pasechnik

unread,
Jun 19, 2018, 9:05:36 AM6/19/18
to sage-devel
On https://trac.sagemath.org/ticket/25477 we need to link a cython extension sage/groups/perm_gps/permgroup_element.so
to a specific (dynamic) library, namely to local/lib/libgap.so (the latter not to be confused with the cython extension libgap.so)

Where on Earth does one have to specify this? E.g. how the cython extension libgap.so (created from sage/libs/gap/libgap.pyx) gets linked to local/lib/libgap.so.4, where is the corresponding configuration?

Does one need some pxd file, or something?

Thanks!

Dima Pasechnik

unread,
Jun 19, 2018, 9:46:07 AM6/19/18
to sage-devel
turns out is simply needed

# distutils: libraries = gap

in the corresponding pxd file. Duh...
Reply all
Reply to author
Forward
0 new messages