Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 7e8a60b

Browse files
committed
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.
1 parent c92e270 commit 7e8a60b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

config/python.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# Autoconf macros for configuring the build of Python extension modules
33
#
4-
# $PostgreSQL: pgsql/config/python.m4,v 1.17 2009/12/15 22:59:53 petere Exp $
4+
# $PostgreSQL: pgsql/config/python.m4,v 1.18 2010/03/17 22:02:44 petere Exp $
55
#
66

77
# PGAC_PATH_PYTHON
@@ -72,7 +72,7 @@ else
7272
python_libspec="-L${python_libdir} -lpython${python_version}"
7373
fi
7474
75-
python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS'))))"`
75+
python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7676
7777
AC_MSG_RESULT([${python_libspec} ${python_additional_libs}])
7878

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7033,7 +7033,7 @@ else
70337033
python_libspec="-L${python_libdir} -lpython${python_version}"
70347034
fi
70357035

7036-
python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS'))))"`
7036+
python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
70377037

70387038
{ $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
70397039
$as_echo "${python_libspec} ${python_additional_libs}" >&6; }

0 commit comments

Comments
 (0)