Dlopen the actual linked libpython
authorNikolai Kondrashov <Nikolai.Kondrashov@redhat.com>
Mon, 25 Apr 2016 15:58:53 +0000 (18:58 +0300)
committerNikolai Kondrashov <Nikolai.Kondrashov@redhat.com>
Thu, 16 Feb 2017 08:37:25 +0000 (09:37 +0100)
commite6c8c3e2c5905410ca80040f4112f0e1225ca009
tree612de69a253c37ad4e83c2f999ae3c60a7111180
parenta9513a673bbb004c34bf542be20a36f112eefb0f
Dlopen the actual linked libpython

In rlm_python, if dl_iterate_phdr(3) is available, dlopen libpython
shared library at the actual path it was linked with on loading, instead
of with just its linker name (version-less SONAME).

This removes the need to have the linker name symlink (e.g.
"libpython2.7.so") in library directory, which is normally installed
only with the development packages. I.e. this removes the requirement of
having python-devel/libpython-dev installed, when loading rlm_python.
src/modules/rlm_python/config.h.in [new file with mode: 0644]
src/modules/rlm_python/configure
src/modules/rlm_python/configure.ac
src/modules/rlm_python/rlm_python.c