Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Jan 2001 04:00:38 +0800
From:      Clive Lin <clive@FreeBSD.org>
To:        Dirk Froemberg <dirk@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: ports/databases/mysql322-server Makefile ports/databases/mysql323-server Makefile
Message-ID:  <20010114040038.A4862@cartier.cirx.org>
In-Reply-To: <200101071451.f07EpnH73661@freefall.freebsd.org>; from dirk@FreeBSD.org on Sun, Jan 07, 2001 at 06:51:49AM -0800
References:  <200101071451.f07EpnH73661@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

    The -fno-exceptions breaks mysql322-server build on 3.5-S.
gcc 2.7.2.3 doesn't have this option :< I did changes below to
build mysql-322. Mysql-323 untested.  

--- Makefile~	Sun Jan 14 03:31:29 2001
+++ Makefile	Sun Jan 14 03:44:35 2001
@@ -37,7 +37,7 @@
 		CONFIGURE_ARGS="${CONFIGURE_ARGS}"
 # without including these flags mysqld may crash under heavy load
 # and multiple connections at the same time
-CXXFLAGS=	${CFLAGS} -felide-constructors -fno-exceptions -fno-rtti
+CXXFLAGS=	${CFLAGS} -felide-constructors -fno-rtti
 
 # MySQL-Server part
 .if !defined(CLIENT_ONLY)
@@ -46,6 +46,10 @@
 PLIST_SUB=	MYSQL_VERSION=${PORTVERSION}
 
 .include <bsd.port.pre.mk>
+
+.if ${OSVERSION} > 400003
+CXXFLAGS+=	-fno-exceptions
+.endif
 
 .if ${OSVERSION} >= 320000
 .if defined(MIT_PTHREADS)


The 400003 is from 
http://www.freebsd.org/porters-handbook/porting-versions.html

On Sun, Jan 07, 2001 at 06:51:49AM -0800, Dirk Froemberg wrote:
> dirk        2001/01/07 06:51:49 PST
> 
>   Modified files:
>     databases/mysql322-server Makefile 
>     databases/mysql323-server Makefile 
>   Log:
>   Add "-felide-constructors -fno-exceptions -fno-rtti" to CXXFLAGS
>   to work around a problem causing mysqld to crash under heavy load
>   and multiple connections at the same time.
Arr, I don't know what's the difference if CXXFLAGS comes without
-fno-exceptions. Are they particular combination or just independent
options in this case ?

>   PORTREVISION bumped.

-- 
CirX - This site doesnt' exist.
9c  k9o h9 s1bg s1f=, 7v  .y xqx a  sj m8r ffg1 vg5 a6 asox tmul h38 =. 
ant sj m8r ob =? 1fj mwby a1 tao vg5 =. soq df v ' .a. CirX=. 


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




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