aboutsummaryrefslogtreecommitdiff
path: root/databases/mysql54-server/Makefile
diff options
context:
space:
mode:
authorDirk Froemberg <dirk@FreeBSD.org>2001-05-23 20:26:06 +0000
committerDirk Froemberg <dirk@FreeBSD.org>2001-05-23 20:26:06 +0000
commit692ff3f0a10400fa287bd4efd551e95f17489e73 (patch)
tree332dc3134aeb42ef3c77117ab3a48edbc9bab08e /databases/mysql54-server/Makefile
parenta083736260dfad5442810a6f13329aa644c1406a (diff)
downloadports-692ff3f0a10400fa287bd4efd551e95f17489e73.tar.gz
ports-692ff3f0a10400fa287bd4efd551e95f17489e73.zip
Notes
Diffstat (limited to 'databases/mysql54-server/Makefile')
-rw-r--r--databases/mysql54-server/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/databases/mysql54-server/Makefile b/databases/mysql54-server/Makefile
index d03dfc0d2f81..168f2ee86685 100644
--- a/databases/mysql54-server/Makefile
+++ b/databases/mysql54-server/Makefile
@@ -40,9 +40,15 @@ CONFIGURE_ARGS+=--with-charset=${WITH_CHARSET}
CONFIGURE_ARGS+=--with-extra-charsets=${WITH_XCHARSET}
.endif
.endif
+.if defined(WITH_LINUXTHREADS)
+CONFIGURE_ARGS+=--with-named-thread-libs='-DHAVE_GLIBC2_STYLE_GETHOSTBYNAME_R -D_THREAD_SAFE -I${LOCALBASE}/include/pthread/linuxthreads -L${LOCALBASE}/lib -llthread -llgcc_r'
+CFLAGS+= -D__USE_UNIX98 -D_REENTRANT -D_THREAD_SAFE -I${LOCALBASE}/include/pthread/linuxthreads
+LIB_DEPENDS+= lthread.2:${PORTSDIR}/devel/linuxthreads
+.endif
CONFIGURE_ENV+= PERL=${PERL} \
PERL5=${PERL} \
INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
+ CFLAGS="${CFLAGS}" \
CONFIGURE_ARGS="${CONFIGURE_ARGS}"
.include <bsd.port.pre.mk>
@@ -60,6 +66,7 @@ pre-fetch:
@${ECHO} " WITH_CHARSET=charset define the primary built-in charset (latin1);"
@${ECHO} " WITH_XCHARSET=list define other built-in charsets (may be 'all');"
@${ECHO} " DB_DIR=directory Set alternate directory for database files."
+ @${ECHO} " WITH_LINUXTHREADS=yes Use the linuxthreads pthread library."
@${ECHO} ""
# MySQL-Server part