summaryrefslogtreecommitdiffstats
path: root/lang/python25
diff options
context:
space:
mode:
authoralane <alane@FreeBSD.org>2002-11-21 15:32:09 +0000
committeralane <alane@FreeBSD.org>2002-11-21 15:32:09 +0000
commitaeb6541b4f447ab397f80cddc1c4dc8926e3b16a (patch)
tree5c9707e1273bbc4bd7b399800221760f31c19c22 /lang/python25
parentc6319a7e7e565fba0db4eaddc573ef4e141ba679 (diff)
downloadFreeBSD-ports-aeb6541b4f447ab397f80cddc1c4dc8926e3b16a.zip
FreeBSD-ports-aeb6541b4f447ab397f80cddc1c4dc8926e3b16a.tar.gz
Simplified threads configuration.
Diffstat (limited to 'lang/python25')
-rw-r--r--lang/python25/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/lang/python25/Makefile b/lang/python25/Makefile
index dc11f17..a7dcc62 100644
--- a/lang/python25/Makefile
+++ b/lang/python25/Makefile
@@ -32,14 +32,16 @@ PYTHON_NO_DEPENDS= yes
# If you don't want to use Python's thread module, you need to set
# WITHOUT_THREADS.
#
-LIBC_R!= /sbin/ldconfig -r | grep c_r || true
-.if (${LIBC_R} != "") && !defined(WITHOUT_THREADS)
+.if !defined(WITHOUT_THREADS)
CONFIGURE_ARGS+= --with-threads
CFLAGS+= ${PTHREAD_CFLAGS}
CONFIGURE_ENV+= LDFLAGS="${PTHREAD_LIBS} ${LDFLAGS}"
.else
CONFIGURE_ARGS+= --without-threads
-.endif
+.if defined(LDFLAGS)
+CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}"
+.endif # defined(LDFLAGS)
+.endif # !defined(WITHOUT_THREADS)
DEMODIR= ${PREFIX}/share/examples/${PYTHON_VERSION}
OpenPOWER on IntegriCloud