On
https://trac.sagemath.org/ticket/25477 we need to link a cython extension
sage/groups/perm_gps/permgroup_element.soto 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!