diff options
author | dirk <dirk@FreeBSD.org> | 2001-12-19 06:41:48 +0800 |
---|---|---|
committer | dirk <dirk@FreeBSD.org> | 2001-12-19 06:41:48 +0800 |
commit | 6174e3d84c7c2666a7e7afb565c07561e60ffc11 (patch) | |
tree | 6298b90a6fe0323dbc8ec23b06b9240236ac6ab3 /databases/mysql54-server | |
parent | 1e23baa34288cab25777fb082d4ca4b702c395e6 (diff) | |
download | freebsd-ports-gnome-6174e3d84c7c2666a7e7afb565c07561e60ffc11.tar.gz freebsd-ports-gnome-6174e3d84c7c2666a7e7afb565c07561e60ffc11.tar.zst freebsd-ports-gnome-6174e3d84c7c2666a7e7afb565c07561e60ffc11.zip |
- remove -fno-omit-frame-pointer from CFLAGS if BUILD_OPTIMIZED is set
- add a warning for BUILD_OPTIMIZED
Diffstat (limited to 'databases/mysql54-server')
-rw-r--r-- | databases/mysql54-server/Makefile | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/databases/mysql54-server/Makefile b/databases/mysql54-server/Makefile index 77a17bc18dd1..accf7d08e176 100644 --- a/databases/mysql54-server/Makefile +++ b/databases/mysql54-server/Makefile @@ -31,7 +31,9 @@ CONFIGURE_ARGS= --localstatedir=${DB_DIR} \ --without-bench \ --with-mit-threads=no \ --with-libwrap \ - --with-low-memory + --with-low-memory \ + --with-comment='FreeBSD port: ${PKGNAME}' + .if ${MACHINE_ARCH} == "i386" CONFIGURE_ARGS+=--enable-assembler --with-berkeley-db .endif @@ -45,7 +47,7 @@ CONFIGURE_ARGS+=--with-extra-charsets=${WITH_XCHARSET} CONFIGURE_ARGS+=--with-mysqld-ldflags=--static .endif .if defined(BUILD_OPTIMIZED) -CFLAGS+= -mcpu=pentiumpro -O3 -fno-omit-frame-pointer +CFLAGS+= -mcpu=pentiumpro -O3 .endif .if defined(WITH_LINUXTHREADS) CONFIGURE_ARGS+=--with-named-thread-libs='-DHAVE_GLIBC2_STYLE_GETHOSTBYNAME_R -D_THREAD_SAFE -I${LOCALBASE}/include/pthread/linuxthreads -L${LOCALBASE}/lib -llthread -llgcc_r' @@ -94,8 +96,9 @@ pre-fetch: @${ECHO} " mysql database." @${ECHO} " Use if your machine has no offical DNS entry." @${ECHO} " BUILD_STATIC=yes Build a static version of mysqld." - @${ECHO} " BUILD_OPTIMIZED=yes Add -mcpu=pentiumpro -O3 -fno-omit-frame-pointer" - @${ECHO} " to CFLAGS." + @${ECHO} " BUILD_OPTIMIZED=yes Add -mcpu=pentiumpro -O3 to CFLAGS." + @${ECHO} " This setting may produce broken code and thus" + @${ECHO} " is not recommended for production servers." @${ECHO} "" post-patch: |