aboutsummaryrefslogtreecommitdiff
path: root/databases/mysql54-server/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'databases/mysql54-server/Makefile')
-rw-r--r--databases/mysql54-server/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/databases/mysql54-server/Makefile b/databases/mysql54-server/Makefile
index 22c3331a5c1e..22de3aeb9226 100644
--- a/databases/mysql54-server/Makefile
+++ b/databases/mysql54-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>