Hi.
[Issue]
On Ubuntu, vim isn't able to execute both ':py' and ':py3' at one process.
[Cause]
Configuration process fails checking unnecessity of RTLD_GLOBAL for python.
('./configure' with '--pythoninterp=dynamic' and '--python3interp=dynamic')
It prepends '-ldl' to LDFLAGS variable, but Ubuntu's ld linker has
'--as-needed' as default option,
so eventually libdl isn't linked due to order of given linker options,
thus fails to resolve dl* symbol (e.g. dlopen).
[Environment]
* Ubuntu
* Vim with +python/dyn and +python3/dyn
* Python2/3 with shared libraries (libpython*.so) installed;
System default python packages are not applicable since their modules are not
compatible with dynamic loading.
Need our own-built python.
[Solution]
I propose prepending '-ldl' to LIBS variable.
It seems appropriate semantically, too.
https://gist.githubusercontent.com/ichizok/b0be31eaf20864326c3b/raw/781ff4b02d661ac4e74e992a07af4a0fdf315a05/configure.in.patch
Thank you.
- Ozaki Kiichi
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.