pkgsrc/x11/py-gnome2/patches/patch-aa
2015-01-12 13:16:33 +00:00

22 lines
907 B
Text

$NetBSD: patch-aa,v 1.7 2015/01/12 13:16:33 jperkin Exp $
--- configure.orig 2010-03-30 23:34:08.000000000 +0000
+++ configure
@@ -12161,7 +12161,7 @@ $as_echo_n "checking for python librarie
link_pymodules_libpython=false;
py_enable_shared=`$PYTHON -c "from distutils.sysconfig import get_config_var; print repr(get_config_var('Py_ENABLE_SHARED'))"`
-if test $py_enable_shared == 1 ; then
+if test $py_enable_shared = 1 ; then
if test x`uname -s` != xDarwin; then
PYTHON_LDFLAGS="-no-undefined"
link_pymodules_libpython=true;
@@ -12176,7 +12176,7 @@ PYTHON_LIBPL=`$PYTHON -c "from distutils
save_CC="$CC"
save_LIBS="$LIBS"
-PYTHON_EMBED_LIBS="-L${PYTHON_LIBDIR} ${PYTHON_LIB_DEPS} -lpython${PYTHON_VERSION}"
+PYTHON_EMBED_LIBS="-L${PYTHON_LIBDIR} ${PYTHON_LIB_DEPS} -lpython${PYTHON_VERSION} ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}"
CC="$PYTHON_CC"
LIBS="$LIBS $PYTHON_EMBED_LIBS"