summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-01-28 15:34:25 +0100
committerBram Moolenaar <Bram@vim.org>2016-01-28 15:34:25 +0100
commitba59ddbd3642d02614acbe52694e3e8a78c0e9d3 (patch)
tree81592a2f20ab2cfcd17b1381fc121951ac209da6
parent923e43b837ca4c8edb7998743f142823eaeaf588 (diff)
downloadvim-git-ba59ddbd3642d02614acbe52694e3e8a78c0e9d3.tar.gz
patch 7.4.1190v7.4.1190
Problem: On OSX the default flag for dlopen() is different. Solution: Add RTLD_LOCAL in the configure check. (sv99, closes #604)
-rwxr-xr-xsrc/auto/configure18
-rw-r--r--src/configure.in8
-rw-r--r--src/version.c2
3 files changed, 18 insertions, 10 deletions
diff --git a/src/auto/configure b/src/auto/configure
index dfe46cae0..8dfecaf28 100755
--- a/src/auto/configure
+++ b/src/auto/configure
@@ -5991,7 +5991,9 @@ eof
fi
- if ${vi_cv_dll_name_python+:} false; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's dll name" >&5
+$as_echo_n "checking Python's dll name... " >&6; }
+if ${vi_cv_dll_name_python+:} false; then :
$as_echo_n "(cached) " >&6
else
@@ -6002,7 +6004,8 @@ else
fi
fi
-
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python" >&5
+$as_echo "$vi_cv_dll_name_python" >&6; }
PYTHON_LIBS="${vi_cv_path_python_plibs}"
if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
@@ -6320,7 +6323,9 @@ eof
fi
- if ${vi_cv_dll_name_python3+:} false; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3's dll name" >&5
+$as_echo_n "checking Python3's dll name... " >&6; }
+if ${vi_cv_dll_name_python3+:} false; then :
$as_echo_n "(cached) " >&6
else
@@ -6331,7 +6336,8 @@ else
fi
fi
-
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python3" >&5
+$as_echo "$vi_cv_dll_name_python3" >&6; }
PYTHON3_LIBS="${vi_cv_path_python3_plibs}"
if test "${vi_cv_path_python3_pfx}" = "${vi_cv_path_python3_epfx}"; then
@@ -6473,7 +6479,7 @@ else
int no_rtl_global_needed_for(char *python_instsoname, char *prefix)
{
int needed = 0;
- void* pylib = dlopen(python_instsoname, RTLD_LAZY);
+ void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL);
if (pylib != 0)
{
void (*pfx)(char *home) = dlsym(pylib, "Py_SetPythonHome");
@@ -6539,7 +6545,7 @@ else
int no_rtl_global_needed_for(char *python_instsoname, wchar_t *prefix)
{
int needed = 0;
- void* pylib = dlopen(python_instsoname, RTLD_LAZY);
+ void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL);
if (pylib != 0)
{
void (*pfx)(wchar_t *home) = dlsym(pylib, "Py_SetPythonHome");
diff --git a/src/configure.in b/src/configure.in
index e9ffa7bb1..ffa0b2ded 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -1219,7 +1219,7 @@ eof
vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
fi
])
- AC_CACHE_VAL(vi_cv_dll_name_python,
+ AC_CACHE_CHECK(Python's dll name,vi_cv_dll_name_python,
[
if test "X$python_DLLLIBRARY" != "X"; then
vi_cv_dll_name_python="$python_DLLLIBRARY"
@@ -1428,7 +1428,7 @@ eof
vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//`
vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//`
])
- AC_CACHE_VAL(vi_cv_dll_name_python3,
+ AC_CACHE_CHECK(Python3's dll name,vi_cv_dll_name_python3,
[
if test "X$python3_DLLLIBRARY" != "X"; then
vi_cv_dll_name_python3="$python3_DLLLIBRARY"
@@ -1540,7 +1540,7 @@ if test "$python_ok" = yes && test "$python3_ok" = yes; then
int no_rtl_global_needed_for(char *python_instsoname, char *prefix)
{
int needed = 0;
- void* pylib = dlopen(python_instsoname, RTLD_LAZY);
+ void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL);
if (pylib != 0)
{
void (*pfx)(char *home) = dlsym(pylib, "Py_SetPythonHome");
@@ -1586,7 +1586,7 @@ if test "$python_ok" = yes && test "$python3_ok" = yes; then
int no_rtl_global_needed_for(char *python_instsoname, wchar_t *prefix)
{
int needed = 0;
- void* pylib = dlopen(python_instsoname, RTLD_LAZY);
+ void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL);
if (pylib != 0)
{
void (*pfx)(wchar_t *home) = dlsym(pylib, "Py_SetPythonHome");
diff --git a/src/version.c b/src/version.c
index 338cb7a9a..287bc93f9 100644
--- a/src/version.c
+++ b/src/version.c
@@ -747,6 +747,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1190,
+/**/
1189,
/**/
1188,