aboutsummaryrefslogtreecommitdiffstats
path: root/databases/percona55-server
diff options
context:
space:
mode:
authormbr <mbr@FreeBSD.org>2003-02-23 23:08:25 +0800
committermbr <mbr@FreeBSD.org>2003-02-23 23:08:25 +0800
commit2230be1ef549009327ab67897fc6a943093dc545 (patch)
tree68a8c6343330d756fa26933feaac361408134e48 /databases/percona55-server
parent8abe262365329a2e8e90d2f20ae085a14a2e80bd (diff)
downloadfreebsd-ports-gnome-2230be1ef549009327ab67897fc6a943093dc545.tar.gz
freebsd-ports-gnome-2230be1ef549009327ab67897fc6a943093dc545.tar.zst
freebsd-ports-gnome-2230be1ef549009327ab67897fc6a943093dc545.zip
Add WITH_LINUXTHREADS option to build with linuxthreads.
Diffstat (limited to 'databases/percona55-server')
-rw-r--r--databases/percona55-server/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/databases/percona55-server/Makefile b/databases/percona55-server/Makefile
index ab8f13da92e2..00fd6e4621f2 100644
--- a/databases/percona55-server/Makefile
+++ b/databases/percona55-server/Makefile
@@ -66,6 +66,14 @@ CONFIGURE_ARGS+=--with-mysqld-ldflags=-all-static
.if defined(BUILD_OPTIMIZED)
CFLAGS+= -mcpu=i686
.endif
+.if defined(WITH_LINUXTHREADS)
+CONFIGURE_ARGS+=--with-named-thread-libs='-DHAVE_GLIBC2_STYLE_GETHOSTBYNAME_R
+CONFIGURE_ARGS+=-D_THREAD_SAFE -I${LOCALBASE}/include/pthread/linuxthreads
+CONFIGURE_ARGS+=-L${LOCALBASE}/lib -llthread -llgcc_r'
+CFLAGS+= -D__USE_UNIX98 -D_REENTRANT -D_THREAD_SAFE
+CFLAGS+= -I${LOCALBASE}/include/pthread/linuxthreads
+LIB_DEPENDS+= lthread.2:${PORTSDIR}/devel/linuxthreads
+.endif
.if defined(THREAD_SAFE_CLIENT)
CONFIGURE_ARGS+=--enable-thread-safe-client
.endif
@@ -102,6 +110,7 @@ pre-fetch:
@${ECHO} " WITH_OPENSSL=yes Enable secure connections."
@${ECHO} " DB_DIR=directory Set alternate directory for database files"
@${ECHO} " (default is /var/db/mysql)."
+ @${ECHO} " WITH_LINUXTHREADS=yes Use the linuxthreads pthread library."
@${ECHO} " OVERWRITE_DB=yes Re-initialize default databases"
@${ECHO} " SKIP_DNS_CHECK=yes Don't run resolveip to do an additional"
@${ECHO} " DNS check before inserting local hostname to"