- Don't link pthread libs in non-pthread case (the default case)
PR: ports/97765 (based on) Submitted by: Takeshi MUTOH <mutoh@openedu.org>
This commit is contained in:
parent
61b42467fe
commit
692d35c930
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=163245
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= ruby
|
||||
PORTVERSION= ${RUBY_PORTVERSION}
|
||||
PORTREVISION= 6
|
||||
PORTREVISION= 7
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= lang ruby ipv6
|
||||
MASTER_SITES= ${MASTER_SITE_RUBY}
|
||||
@ -43,6 +43,8 @@ CONFIGURE_ARGS= ${RUBY_CONFIGURE_ARGS} \
|
||||
.if defined(WITH_PTHREADS)
|
||||
CONFIGURE_ARGS+=--enable-pthread
|
||||
PKGNAMESUFFIX:= ${PKGNAMESUFFIX}+pthreads
|
||||
CONFIGURE_ENV= CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" \
|
||||
LIBS="${LIBS} ${PTHREAD_LIBS}"
|
||||
.else
|
||||
CONFIGURE_ARGS+=--disable-pthread
|
||||
.endif
|
||||
@ -70,9 +72,6 @@ EXTRA_PATCHES= ${PATCHDIR}/extrapatch-eval.c
|
||||
CONFIGURE_ARGS+= --enable-ipv6
|
||||
.endif
|
||||
|
||||
CONFIGURE_ENV= CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" \
|
||||
LIBS="${LIBS} ${PTHREAD_LIBS}"
|
||||
|
||||
.if ${RUBY_VER} == ${RUBY_DEFAULT_VER}
|
||||
MLINKS= ${RUBY_NAME}.1 ruby.1
|
||||
IF_DEFAULT= ""
|
||||
|
Loading…
Reference in New Issue
Block a user