[Libreoffice-commits] .: configure.in

Robert Nagy rnagy at kemper.freedesktop.org
Sun Dec 5 06:44:25 PST 2010


 configure.in |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 8e8717747d88a36248da42fec16ecb2b7dac199f
Author: Robert Nagy <robert at openbsd.org>
Date:   Sun Dec 5 15:44:04 2010 +0100

    fix PYTHON_LIBS
    
    on some platforms there are extra libs needed when linking with -lpython,
    for example -pthread and -lutil on OpenBSD

diff --git a/configure.in b/configure.in
index 0e3b94b..d875950 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


More information about the Libreoffice-commits mailing list