mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-11-21 03:13:05 +08:00
Don't link PL/Python against LOCALMODLIBS
This variable is apparently only for Python internally. In newer releases of Python this variable pulls in more and more libraries that users are less likely to have, leading to potential build failures.
This commit is contained in:
parent
c92e2702f1
commit
7e8a60b7c5
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Autoconf macros for configuring the build of Python extension modules
|
# Autoconf macros for configuring the build of Python extension modules
|
||||||
#
|
#
|
||||||
# $PostgreSQL: pgsql/config/python.m4,v 1.17 2009/12/15 22:59:53 petere Exp $
|
# $PostgreSQL: pgsql/config/python.m4,v 1.18 2010/03/17 22:02:44 petere Exp $
|
||||||
#
|
#
|
||||||
|
|
||||||
# PGAC_PATH_PYTHON
|
# PGAC_PATH_PYTHON
|
||||||
@ -72,7 +72,7 @@ else
|
|||||||
python_libspec="-L${python_libdir} -lpython${python_version}"
|
python_libspec="-L${python_libdir} -lpython${python_version}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS'))))"`
|
python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
|
||||||
|
|
||||||
AC_MSG_RESULT([${python_libspec} ${python_additional_libs}])
|
AC_MSG_RESULT([${python_libspec} ${python_additional_libs}])
|
||||||
|
|
||||||
|
2
configure
vendored
2
configure
vendored
@ -7033,7 +7033,7 @@ else
|
|||||||
python_libspec="-L${python_libdir} -lpython${python_version}"
|
python_libspec="-L${python_libdir} -lpython${python_version}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS'))))"`
|
python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
|
||||||
|
|
||||||
{ $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
|
{ $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
|
||||||
$as_echo "${python_libspec} ${python_additional_libs}" >&6; }
|
$as_echo "${python_libspec} ${python_additional_libs}" >&6; }
|
||||||
|
Loading…
Reference in New Issue
Block a user