summaryrefslogtreecommitdiffstats
path: root/databases/mysql60-server
diff options
context:
space:
mode:
authordirk <dirk@FreeBSD.org>2001-01-21 11:49:48 +0000
committerdirk <dirk@FreeBSD.org>2001-01-21 11:49:48 +0000
commita9463108ede34c0d41ca173c96c757b776135965 (patch)
tree5dd216db8ae2e9e56865ee6d1a09f79c98bd1515 /databases/mysql60-server
parentd6f6681b792e6f8f9fed2d03d6b602f9e496cab7 (diff)
downloadFreeBSD-ports-a9463108ede34c0d41ca173c96c757b776135965.zip
FreeBSD-ports-a9463108ede34c0d41ca173c96c757b776135965.tar.gz
Fix build on FreeBSD-3.x.
PR: ports/24160
Diffstat (limited to 'databases/mysql60-server')
-rw-r--r--databases/mysql60-server/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/databases/mysql60-server/Makefile b/databases/mysql60-server/Makefile
index 22c3331..22de3ae 100644
--- a/databases/mysql60-server/Makefile
+++ b/databases/mysql60-server/Makefile
@@ -37,9 +37,14 @@ CONFIGURE_ENV+= PERL=${PERL} \
PERL5=${PERL} \
INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
CONFIGURE_ARGS="${CONFIGURE_ARGS}"
+
+.include <bsd.port.pre.mk>
# 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
+.if ${OSVERSION} >= 400002
+CXXFLAGS+= -fno-exceptions
+.endif
# MySQL-Server part
.if !defined(CLIENT_ONLY)
@@ -102,6 +107,7 @@ MAKE_ENV= CLIENT_ONLY="${CLIENT_ONLY}"
post-install:
@${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/mysql-client.sh > ${PREFIX}/etc/rc.d/mysql-client.sh
@${CHMOD} 750 ${PREFIX}/etc/rc.d/mysql-client.sh
+
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud