Remove the extra checks for Intel's C compiler

When the target is {something}-icc, we're doing some extra checks of
the icc compiler.  However, all such targets were cleaned away in
March 2015, so this Configure section is dead code.

Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
Richard Levitte 2016-01-31 18:33:42 +01:00
parent b59e1bed7d
commit 0e87e05816

View file

@ -980,38 +980,6 @@ if ($target{build_scheme}->[0] ne "mk1mf")
#
# Platform fix-ups
#
if ($target =~ /-icc$/) # Intel C compiler
{
my $iccver=0;
if (open(FD,"$target{cc} -V 2>&1 |"))
{
while(<FD>) { $iccver=$1 if (/Version ([0-9]+)\./); }
close(FD);
}
if ($iccver>=8)
{
$config{cflags}=~s/-KPIC/-fPIC/;
# Eliminate unnecessary dependency from libirc.a. This is
# essential for shared library support, as otherwise
# apps/openssl can end up in endless loop upon startup...
$config{cflags}.=" -Dmemcpy=__builtin_memcpy -Dmemset=__builtin_memset";
}
if ($iccver>=9)
{
$config{ex_libs}.=" -i-static";
$config{ex_libs}=~s/-no_cpprt/-no-cpprt/;
}
if ($iccver>=10)
{
$config{ex_libs}=~s/-i-static/-static-intel/;
}
if ($iccver>=11)
{
$config{cflags}.=" -no-intel-extensions"; # disable Cilk
$config{ex_libs}=~s/-no-cpprt/-no-cxxlib/;
}
}
# Unlike other OSes (like Solaris, Linux, Tru64, IRIX) BSD run-time
# linkers (tested OpenBSD, NetBSD and FreeBSD) "demand" RPATH set on
# .so objects. Apparently application RPATH is not global and does