[Libreoffice-commits] .: Branch 'libreoffice-3-3' - configure.in

Robert Nagy rnagy at kemper.freedesktop.org
Sun Dec 5 06:59:55 PST 2010


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

New commits:
commit e3b16ee3b4d3eb973b6e3d9833c0288498cc1d3f
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 922b4c0..0aa3aa5 100644
--- a/configure.in
+++ b/configure.in
@@ -4231,8 +4231,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