summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--x11-toolkits/py-gtk2/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/x11-toolkits/py-gtk2/Makefile b/x11-toolkits/py-gtk2/Makefile
index 289f7decedeb..b266bb53c6e1 100644
--- a/x11-toolkits/py-gtk2/Makefile
+++ b/x11-toolkits/py-gtk2/Makefile
@@ -34,13 +34,15 @@ CONFLICTS= py*-gtk-0*
# Use the same way as the Python port to determine if we want
# threading support.
#
-LIBC_R!= /sbin/ldconfig -r | grep "c_r\|pthread" || true
-.if (${LIBC_R} != "") && !defined(WITHOUT_THREADS)
+.if !defined(WITHOUT_THREADS)
CONFIGURE_ARGS+= --enable-thread
CFLAGS+= ${PTHREAD_CFLAGS}
CONFIGURE_ENV+= LDFLAGS="${PTHREAD_LIBS} ${LDFLAGS}"
.else
CONFIGURE_ARGS+= --disable-thread
+.if defined(LDFLAGS)
+CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}"
+.endif
.endif
.if !defined(NOPORTDOCS)