From: Andy Polyakov Date: Fri, 14 Sep 2007 19:32:54 +0000 (+0000) Subject: More Intel cc fix-ups [from HEAD]. X-Git-Tag: OpenSSL_0_9_8f~42 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=b48111df7c4bb3ee8b132e0661fc012e2ade731c More Intel cc fix-ups [from HEAD]. --- diff --git a/Configure b/Configure index 0de543d51b..ad40990fa7 100755 --- a/Configure +++ b/Configure @@ -1162,12 +1162,16 @@ if (!$IsMK1MF) } $cpuid_obj.=" uplink.o uplink-cof.o" if ($cflags =~ /\-DOPENSSL_USE_APPLINK/); + # Compiler fix-ups if ($target =~ /icc$/) { - my($iccver)=`$cc -V 2>&1`; - if ($iccver =~ /Version ([0-9]+)\./) { $iccver=$1; } - else { $iccver=0; } + my $iccver=0; + if (open(FD,"$cc -V 2>&1 |")) + { + while() { $iccver=$1 if (/Version ([0-9]+)\./); } + close(FD); + } if ($iccver>=8) { # Eliminate unnecessary dependency from libirc.a. This is @@ -1175,6 +1179,15 @@ if ($target =~ /icc$/) # apps/openssl can end up in endless loop upon startup... $cflags.=" -Dmemcpy=__builtin_memcpy -Dmemset=__builtin_memset"; } + if ($iccver>=9) + { + $cflags.=" -i-static"; + $cflags=~s/\-no_cpprt/-no-cpprt/; + } + if ($iccver>=10) + { + $cflags=~s/\-i\-static/-static-intel/; + } } if ($sys_id ne "")