From 06d57135c3576e5e9f97d6e4dad25b75f34d779f Mon Sep 17 00:00:00 2001 From: Marcus Holland-Moritz Date: Tue, 23 Sep 2003 17:04:35 +0200 Subject: [PATCH] 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 --- hints/linux.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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. -- 2.7.4