mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / BUILD / compile-pentium-icc
bloba94f4b6287866a26b31bee741802d33b9874fdba
1 #! /bin/sh
3 # Copyright (C) 2005 MySQL AB
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.
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 Street, Fifth Floor, Boston, MA 02110-1301, USA
18 path=`dirname $0`
19 . "$path/SETUP.sh"
21 # Note that we can't use ccache with icc as the generated .deps file will
22 # then contain wrong information
23 CC=icc
24 CXX=icpc
25 CXXLD="$CXX -static-libcxa"
26 export CC CXX CXXLD
28 c_warnings=""
29 cxx_warnings=""
30 extra_flags="$fast_cflags -unroll2 -ip -mp -restrict"
32 # Use -no-ipo if you get this error
33 # IPO link: can not find "-lstdc++_shared"
34 # icpc: error: problem during multi-file optimization compilation (code 1)
35 extra_flags="$extra_flags -no-ipo"
36 base_cxxflags="-fno-exceptions -fno-rtti"
37 extra_configs="$pentium_configs $static_link"
39 . "$path/FINISH.sh"