diff options
author | ale <ale@FreeBSD.org> | 2007-09-16 23:07:30 +0800 |
---|---|---|
committer | ale <ale@FreeBSD.org> | 2007-09-16 23:07:30 +0800 |
commit | 886ccaadc76cc870dbe19ff22d4b4ddd1f0c6656 (patch) | |
tree | 1edf0fcbe48c80f2960dfa98d5e3aba9d8d50c2b | |
parent | e081847c56a89ae39d7ff8d609830e622aed2c43 (diff) | |
download | freebsd-ports-gnome-886ccaadc76cc870dbe19ff22d4b4ddd1f0c6656.tar.gz freebsd-ports-gnome-886ccaadc76cc870dbe19ff22d4b4ddd1f0c6656.tar.zst freebsd-ports-gnome-886ccaadc76cc870dbe19ff22d4b4ddd1f0c6656.zip |
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.
-rw-r--r-- | databases/mysql40-server/Makefile | 19 |
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) |