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.

39 lines
1.3 KiB

  1. #! /bin/sh
  2. # Copyright (C) 2005 MySQL AB
  3. #
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; version 2 of the License.
  7. #
  8. # This program is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. # GNU General Public License for more details.
  12. #
  13. # You should have received a copy of the GNU General Public License
  14. # along with this program; if not, write to the Free Software
  15. # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  16. path=`dirname $0`
  17. . "$path/SETUP.sh"
  18. # Note that we can't use ccache with icc as the generated .deps file will
  19. # then contain wrong information
  20. CC=icc
  21. CXX=icpc
  22. CXXLD="$CXX -static-libcxa"
  23. export CC CXX CXXLD
  24. c_warnings=""
  25. cxx_warnings=""
  26. extra_flags="$fast_cflags -unroll2 -ip -mp -restrict"
  27. # Use -no-ipo if you get this error
  28. # IPO link: can not find "-lstdc++_shared"
  29. # icpc: error: problem during multi-file optimization compilation (code 1)
  30. extra_flags="$extra_flags -no-ipo"
  31. base_cxxflags="-fno-exceptions -fno-rtti"
  32. extra_configs="$pentium_configs $static_link --with-yassl"
  33. . "$path/FINISH.sh"