From 9d46752dfecf26ccd62de33811eb30a19ffb87ac Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Sun, 14 Aug 2016 17:24:10 +0200 Subject: [PATCH] Configure: recognize -static as link option and disable incompatible options. Reviewed-by: Rich Salz --- Configure | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Configure b/Configure index bf5b2c667c..0a33fc2e41 100755 --- a/Configure +++ b/Configure @@ -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;