diff options
Diffstat (limited to 'lang')
-rw-r--r-- | lang/ruby18/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lang/ruby18/Makefile b/lang/ruby18/Makefile index 25d24c70c8dd..6d73963f6b94 100644 --- a/lang/ruby18/Makefile +++ b/lang/ruby18/Makefile @@ -40,10 +40,11 @@ OPTIONS= PTHREADS "Enable pthreads support (may break some apps)" off \ .include <bsd.port.pre.mk> PKGNAMESUFFIX= #empty +CFLAGS+= ${PTHREAD_CFLAGS} # Keep this, else ruby will fail to load +LDFLAGS+= ${PTHREAD_LIBS} # libraries dependent op libpthread. + .if defined(WITH_PTHREADS) CONFIGURE_ARGS+=--enable-pthread -CFLAGS+= ${PTHREAD_CFLAGS} -LDFLAGS+= ${PTHREAD_LIBS} PKGNAMESUFFIX:= ${PKGNAMESUFFIX}+pthreads .else CONFIGURE_ARGS+=--disable-pthread |