Simplified threads configuration.
This commit is contained in:
@@ -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}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user