From: Marcus Holland-Moritz Date: Tue, 23 Sep 2003 15:04:35 +0000 (+0200) Subject: Re: [PATCH] RC5 and Intel's ICC X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=06d57135c3576e5e9f97d6e4dad25b75f34d779f;p=p5sagit%2Fp5-mst-13.2.git Re: [PATCH] RC5 and Intel's ICC From: "Marcus Holland-Moritz" Message-ID: <00d101c381d3$3d761fe0$0c2f1fac@R2D2> (add -we147 to ccflags if cc = ICC so that prototype detection works right) p4raw-id: //depot/perl@21339 --- diff --git a/hints/linux.sh b/hints/linux.sh index caf380a..bc7d49a 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -67,6 +67,18 @@ case "$usemymalloc" in '') usemymalloc='n' ;; esac +# Check if we're about to use Intel's ICC compiler +case "`${cc:-cc} -V 2>&1`" in +*"Intel(R) C++ Compiler"*) + # This is needed for Configure's prototype checks to work correctly + ccflags="-we147 $ccflags" + # If we're using ICC, we usually want the best performance + case "$optimize" in + '') optimize='-O3' ;; + esac + ;; +esac + case "$optimize" in '') # If we have modern enough gcc and well-supported enough CPU, # crank up the optimization level.