Skip site navigation (1)Skip section navigation (2)
Date:      16 Mar 1998 10:18:11 +0100
From:      Thomas Gellekum <tg@ihf.rwth-aachen.de>
To:        Tom <tom@uniserve.com>
Cc:        Gary Palmer <gpalmer@FreeBSD.ORG>, Scot Elliott <scot@internal.planet-three.com>, ports@FreeBSD.ORG
Subject:   mysql port (was: Re: include libc_r in 2.2.6)
Message-ID:  <87u38z56zw.fsf@ghpc6.ihf.rwth-aachen.de>
In-Reply-To: Tom's message of "Fri, 13 Mar 1998 13:59:19 -0800 (PST)"
References:  <Pine.BSF.3.96.980313134432.21595D-100000@shell.uniserve.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Tom <tom@uniserve.com> writes:

> > >   The "missing lib" is not a port, so the ports collection can't install
> > > it.  libc_r is part of 2.2.5-stable tree.  Its just not compiled by
> > > default.
> > 
> > Ok, so in the case that libc_r is missing, you fall back to using
> > pthreads, which the port is already using (or so I assume from other
> > posts)
> 
>   mit-pthreads actually.  However, using mit-phreads results in a slower,
> somewhat crippled build of MySQL.  However, the fact that MySQL bundles
> in mit-pthreads in nice.  The LDAP stuff only works with libc_r though.

How about these changes for now?

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/databases/mysql/Makefile,v
retrieving revision 1.17
diff -u -r1.17 Makefile
--- Makefile	1998/03/16 02:45:39	1.17
+++ Makefile	1998/03/16 09:14:21
@@ -24,8 +24,14 @@
 		--with-MAKE=gmake \
 		--without-perl \
 		--without-debug \
-		--without-readline
+		--without-readline ${WITH_LIBC_R}
 CONFIGURE_ENV+=	PERL=${PREFIX}/bin/perl INSTALL_SCRIPT="${INSTALL_SCRIPT}"
+
+.if exists(/usr/lib/libc_r.a)
+WITH_LIBC_R=	--with-named-thread-libs=-lc_r \
+		--enable-thread-safe-client
+CFLAGS+=	-D_THREAD_SAFE
+.endif
 
 pre-install:
 .if defined(PACKAGE_BUILDING)

tg

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87u38z56zw.fsf>