Le dimanche 25 avril 2010 à 19:37 +0100, Floris Bruynooghe a écrit :
> You could try setting RUNPATH/RPATH into the extension module.  If
> it's using distutils you can use --rpath to setup.py build_ext, see
> the --help of the build_ext sub-command.

Unfortunately that won’t work, since the rpath used by dlopen() is the
one provided by the binary, not the one for the module being loaded.

This is a known issue with interpreters, and no one has been able to
provide a decent solution.

A possible way would be to make a wrapper Python extension, that would
parse the module for its NEEDED components and load them manually using
the given rpath before loading the actual module.

Which in turn will not be possible since there is no shared version of
libbfd - which would be required for doing this.

Cheers,
-- 
 .''`.      Josselin Mouette
: :' :
`. `'   “A handshake with whitnesses is the same
  `-     as a signed contact.”  -- Jörg Schilling


--
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1272267892.15552.14.ca...@meh

Reply via email to