summaryrefslogtreecommitdiff
path: root/hints/linux.sh
diff options
context:
space:
mode:
authorSteve Peters <steve@fisharerojo.org>2006-07-13 15:46:11 +0000
committerSteve Peters <steve@fisharerojo.org>2006-07-13 15:46:11 +0000
commit6ae709ad20fb5debe5f58c9686ed99226819442f (patch)
treec23fffe9fa6a150444b01641d25bb8cd0630a145 /hints/linux.sh
parent6148ee2554e208993e4b3b3dea9cb9e0cc61fdf0 (diff)
downloadperl-6ae709ad20fb5debe5f58c9686ed99226819442f.tar.gz
Keep Intel C++ from claiming that it is gcc.
p4raw-id: //depot/perl@28566
Diffstat (limited to 'hints/linux.sh')
-rw-r--r--hints/linux.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/hints/linux.sh b/hints/linux.sh
index 7f348ef951..98bdc9c939 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -78,7 +78,8 @@ case "`${cc:-cc} -V 2>&1`" in
*"Intel(R) C++ Compiler"*|*"Intel(R) C Compiler"*)
# This is needed for Configure's prototype checks to work correctly
# The -mp1 flag is needed to pass cmp related tests
- ccflags="-we147 -mp1 $ccflags"
+ # The -no-gcc flag is needed otherwise, icc pretends (poorly) to be gcc
+ ccflags="-we147 -mp1 -no-gcc $ccflags"
# If we're using ICC, we usually want the best performance
case "$optimize" in
'') optimize='-O3' ;;