diff options
author | Robert Nagy <robert@openbsd.org> | 2010-12-05 15:44:04 +0100 |
---|---|---|
committer | Robert Nagy <robert@openbsd.org> | 2010-12-05 15:44:04 +0100 |
commit | e7f45a36f33b784db7fa0b981e6a23efef3ee467 (patch) | |
tree | 3f671b3fbaa56f5268bb0f4fea5e1af72e1b2820 | |
parent | ef7a253bee1c81648cdc7748f2684f3c7136c02f (diff) |
fix PYTHON_LIBS
on some platforms there are extra libs needed when linking with -lpython,
for example -pthread and -lutil on OpenBSD
-rw-r--r-- | configure.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 0e3b94b87a83..d8759508b100 100644 --- a/configure.in +++ b/configure.in @@ -4489,8 +4489,9 @@ elif test -n "$with_system_python" -o -n "$with_system_libs" && \ python_include=`$PYTHON -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('INCLUDEPY');"` python_version=`$PYTHON -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('VERSION');"` + python_libs=`$PYTHON -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBS');"` PYTHON_CFLAGS="-I$python_include" - PYTHON_LIBS="-lpython$python_version" + PYTHON_LIBS="-lpython$python_version $python_libs" fi if test "$with_system_python" = "yes" ; then SYSTEM_PYTHON=YES |