Allow DSO flags like -fpic, -fPIC, -KPIC etc. to be specified on the `perl
Configure ...' command line. This way one can compile OpenSSL libraries with
Position Independent Code (PIC) which is needed for linking it into DSOs.
diff --git a/Configure b/Configure
index d7eb1ff..f9f92c3 100755
--- a/Configure
+++ b/Configure
@@ -289,9 +289,13 @@
{
$flags.=$_." ";
}
+ elsif ($_ =~ /^-[fK](.*)$/)
+ {
+ $flags.=$_." ";
+ }
else
{
- die "unknown options, only -Dxxx, -Lxxx and -lxxx supported\n";
+ die "unknown options, only -Dxxx, -Lxxx, -lxxx, -fxxx and -Kxxx are supported\n";
}
}
else