# HG changeset patch # User reimar # Date 1164477659 0 # Node ID 8a52c3139152973c4e883425b941b3efcfe68126 # Parent 05783b74ef64e71bead2cc8f50e83c8b5e27a537 Add support for compiling with ICC 9.1. Currently needs --target=generic-linux, since ICC does not (properly) support __attribute__((used)), even though the documentation claims otherwise. diff -r 05783b74ef64 -r 8a52c3139152 configure --- a/configure Sat Nov 25 17:58:43 2006 +0000 +++ b/configure Sat Nov 25 18:00:59 2006 +0000 @@ -690,7 +690,7 @@ cc_version="v. ?.??, bad" cc_verc_fail=yes ;; - 8.0) + 8.0|9.1) cc_version="$cc_version, ok" cc_verc_fail=no ;; @@ -1537,13 +1537,19 @@ fi _stripbinaries=no elif test -z "$CFLAGS" ; then + if test "$cc_vendor" = "intel" ; then + CFLAGS="-O2 $_march $_mcpu $_pipe -fomit-frame-pointer" + else CFLAGS="-O4 $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer" + fi else _warn_CFLAGS=yes fi if test -n "$LDFLAGS" ; then _ld_extra="$_ld_extra $LDFLAGS" _warn_CFLAGS=yes +elif test "$cc_vendor" = "intel" ; then + _ld_extra="$_ld_extra -i-static" fi if test -n "$CPPFLAGS" ; then _inc_extra="$_inc_extra $CPPFLAGS"