1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

mysql.spec.sh:

Added --with-maria and maria support


support-files/mysql.spec.sh:
  Added --with-maria and maria support
This commit is contained in:
unknown
2008-02-21 23:34:22 +01:00
parent def85d3564
commit 7d862953e6

View File

@ -26,6 +26,11 @@
%{?_with_yassl:%define YASSL_BUILD 1} %{?_with_yassl:%define YASSL_BUILD 1}
%{!?_with_yassl:%define YASSL_BUILD 0} %{!?_with_yassl:%define YASSL_BUILD 0}
# use "rpmbuild --with maria" or "rpm --define '_with_maria 1'" (for RPM 3.x)
# to build with maria support (off by default)
%{?_with_maria:%define MARIA_BUILD 1}
%{!?_with_maria:%define MARIA_BUILD 0}
%if %{STATIC_BUILD} %if %{STATIC_BUILD}
%define release 0 %define release 0
%else %else
@ -246,6 +251,19 @@ sh -c "PATH=\"${MYSQL_BUILD_PATH:-$PATH}\" \
LDFLAGS=\"$MYSQL_BUILD_LDFLAGS\" \ LDFLAGS=\"$MYSQL_BUILD_LDFLAGS\" \
./configure \ ./configure \
$* \ $* \
--with-innodb \
--with-ndbcluster \
--with-archive-storage-engine \
--with-csv-storage-engine \
--with-example-storage-engine \
--with-blackhole-storage-engine \
--with-federated-storage-engine \
%if %{MARIA_BUILD}
--with-plugin-maria \
--with-maria-tmp-tables \
%endif
--with-partition \
--with-big-tables \
--with-mysqld-ldflags='-static' \ --with-mysqld-ldflags='-static' \
--with-client-ldflags='-static' \ --with-client-ldflags='-static' \
--with-zlib-dir=bundled \ --with-zlib-dir=bundled \
@ -320,16 +338,12 @@ CFLAGS=`echo "${MYSQL_BUILD_CFLAGS:-$RPM_OPT_FLAGS} -g" | sed -e 's/-O[0-9]*//g'
CXXFLAGS=`echo "${MYSQL_BUILD_CXXFLAGS:-$RPM_OPT_FLAGS -felide-constructors -fno-exceptions -fno-rtti} -g" | sed -e 's/-O[0-9]*//g'` \ CXXFLAGS=`echo "${MYSQL_BUILD_CXXFLAGS:-$RPM_OPT_FLAGS -felide-constructors -fno-exceptions -fno-rtti} -g" | sed -e 's/-O[0-9]*//g'` \
BuildMySQL "--enable-shared \ BuildMySQL "--enable-shared \
--with-debug \ --with-debug \
--with-innodb \ %if %{MARIA_BUILD}
--with-ndbcluster \ --with-comment=\"MySQL Community Server - Debug [Maria] (GPL)\" \
--with-archive-storage-engine \ %else
--with-csv-storage-engine \ --with-comment=\"MySQL Community Server - Debug (GPL)\" \
--with-example-storage-engine \ %endif
--with-blackhole-storage-engine \ ")
--with-federated-storage-engine \
--with-partition \
--with-big-tables \
--with-comment=\"MySQL Community Server - Debug (GPL)\"")
# We might want to save the config log file # We might want to save the config log file
if test -n "$MYSQL_DEBUGCONFLOG_DEST" if test -n "$MYSQL_DEBUGCONFLOG_DEST"
@ -349,17 +363,13 @@ fi
CFLAGS="${MYSQL_BUILD_CFLAGS:-$RPM_OPT_FLAGS} -g" \ CFLAGS="${MYSQL_BUILD_CFLAGS:-$RPM_OPT_FLAGS} -g" \
CXXFLAGS="${MYSQL_BUILD_CXXFLAGS:-$RPM_OPT_FLAGS -felide-constructors -fno-exceptions -fno-rtti} -g" \ CXXFLAGS="${MYSQL_BUILD_CXXFLAGS:-$RPM_OPT_FLAGS -felide-constructors -fno-exceptions -fno-rtti} -g" \
BuildMySQL "--enable-shared \ BuildMySQL "--enable-shared \
--with-innodb \
--with-ndbcluster \
--with-archive-storage-engine \
--with-csv-storage-engine \
--with-example-storage-engine \
--with-blackhole-storage-engine \
--with-federated-storage-engine \
--with-partition \
--with-embedded-server \ --with-embedded-server \
--with-big-tables \ %if %{MARIA_BUILD}
--with-comment=\"MySQL Community Server (GPL)\"") --with-comment=\"MySQL Community Server [Maria] (GPL)\" \
%else
--with-comment=\"MySQL Community Server (GPL)\" \
%endif
")
# We might want to save the config log file # We might want to save the config log file
if test -n "$MYSQL_CONFLOG_DEST" if test -n "$MYSQL_CONFLOG_DEST"
then then