You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.9 KiB

  1. #! /bin/sh
  2. # Copyright (c) 2007 MySQL AB, 2008 Sun Microsystems, Inc.
  3. # Use is subject to license terms.
  4. #
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; version 2 of the License.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  17. gmake -k clean || true
  18. /bin/rm -f */.deps/*.P config.cache
  19. path=`dirname $0`
  20. . "$path/autorun.sh"
  21. # For "optimal" code for this computer add -fast to EXTRA
  22. # To compile 64 bit, add -m64 to EXTRA_64_BIT
  23. EXTRA_64_BIT="-m64"
  24. EXTRA="-fast"
  25. #
  26. # The following should not need to be touched
  27. #
  28. export CC CXX CFLAGS CXXFLAGS LIBS
  29. STD="-g -mt -D_FORTEC_ $EXTRA $EXTRA_64_BIT"
  30. ASFLAGS="$EXTRA_64_BIT"
  31. CC=cc-5.0
  32. CFLAGS="-Xa -xstrconst $STD"
  33. CXX=CC
  34. CXXFLAGS="-noex $STD"
  35. LIBS=-lmtmalloc
  36. ./configure \
  37. --prefix=/usr/local/mysql \
  38. --localstatedir=/usr/local/mysql/data \
  39. --libexecdir=/usr/local/mysql/bin \
  40. --with-extra-charsets=complex \
  41. --enable-thread-safe-client \
  42. --enable-local-infile \
  43. --with-zlib-dir=bundled \
  44. --with-big-tables \
  45. --with-readline \
  46. --with-archive-storage-engine \
  47. --with-named-curses=-lcurses \
  48. --with-big-tables \
  49. --with-innodb \
  50. --with-example-storage-engine \
  51. --with-blackhole-storage-engine \
  52. --with-federated-storage-engine \
  53. --with-csv-storage-engine \
  54. --with-ssl \
  55. --enable-assembler
  56. # Not including:
  57. # --with-ndbcluster
  58. # --with-berkeley-db
  59. gmake -j4
  60. test $? = 0 && make test