summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorAlex Dupre <ale@FreeBSD.org>2007-09-16 15:07:30 +0000
committerAlex Dupre <ale@FreeBSD.org>2007-09-16 15:07:30 +0000
commit8d4a6779a9e0de92af2d280e824ce10da033a1e9 (patch)
treebaf79c602b4150b67b2a4a22996aa1b64bfa0408 /databases
parent- Update to 0.9.4 [1] (diff)
Begin planning for de-orbit burn. This does not build with gcc4.2, and
the correct fix is to update to a modern version of MySQL. While here, rip out obsolete 4.X cruft.
Notes
Notes: svn path=/head/; revision=199562
Diffstat (limited to 'databases')
-rw-r--r--databases/mysql40-server/Makefile19
1 files changed, 4 insertions, 15 deletions
diff --git a/databases/mysql40-server/Makefile b/databases/mysql40-server/Makefile
index 1013db894a49..7306a9f3b0e6 100644
--- a/databases/mysql40-server/Makefile
+++ b/databases/mysql40-server/Makefile
@@ -64,31 +64,20 @@ CONFIGURE_ARGS+=--with-named-thread-libs='-DHAVE_GLIBC2_STYLE_GETHOSTBYNAME_R
CONFIGURE_ARGS+=-D_THREAD_SAFE -I${LOCALBASE}/include/pthread/linuxthreads
CFLAGS+= -D__USE_UNIX98 -D_REENTRANT -D_THREAD_SAFE
CFLAGS+= -I${LOCALBASE}/include/pthread/linuxthreads
-.if ${OSVERSION} > 500000
LIB_DEPENDS+= lthread.[35]:${PORTSDIR}/devel/linuxthreads
CONFIGURE_ARGS+=-L${LOCALBASE}/lib -llthread -llgcc_r -llstdc++ -llsupc++'
.else
-LIB_DEPENDS+= lthread.[24]:${PORTSDIR}/devel/linuxthreads
-CONFIGURE_ARGS+=-L${LOCALBASE}/lib -llthread -llgcc_r'
-.endif
-.else
CONFIGURE_ARGS+=--with-named-thread-libs=${PTHREAD_LIBS}
CFLAGS+= ${PTHREAD_CFLAGS}
.endif
-.if ${OSVERSION} < 500000
-CXX= ${CC}
+.if ${OSVERSION} >= 700000
+IGNORE= obsolete and does not build with gcc4.2; use mysql 5 or later
.endif
.if defined(BUILD_OPTIMIZED)
-CFLAGS+= -O3 -fno-omit-frame-pointer
-.if ${OSVERSION} > 500000 || (defined(USE_GCC) && (${USE_GCC} == 3.0 || ${USE_GCC} == 3.1 || ${USE_GCC} == 3.2 || ${USE_GCC} == 3.3))
-CFLAGS+= -fno-gcse
-.endif
-.endif
-CXXFLAGS+= ${CFLAGS} -felide-constructors -fno-rtti
-.if ${OSVERSION} >= 400002
-CXXFLAGS+= -fno-exceptions
+CFLAGS+= -O3 -fno-omit-frame-pointer -fno-gcse
.endif
+CXXFLAGS+= ${CFLAGS} -felide-constructors -fno-rtti -fno-exceptions
# MySQL-Server part
.if !defined(CLIENT_ONLY) && !defined(SCRIPTS_ONLY)