Configure: recognize -static as link option and disable incompatible options.

Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
Andy Polyakov 2016-08-14 17:24:10 +02:00
parent f4941736a9
commit 9d46752dfe

View file

@ -725,6 +725,13 @@ foreach (@argvcopy)
{
$libs.=$_." ";
}
elsif (/^-static$/)
{
$libs.=$_." ";
$disabled{"pic"} = "forced";
$disabled{"shared"} = "forced";
$disabled{"threads"} = "forced";
}
elsif (/^-D(.*)$/)
{
push @user_defines, $1;