Add OPENSSL_PIC back
authorRichard Levitte <levitte@openssl.org>
Sun, 21 Feb 2016 19:52:39 +0000 (20:52 +0100)
committerRichard Levitte <levitte@openssl.org>
Mon, 22 Feb 2016 19:41:42 +0000 (20:41 +0100)
In the earlier change, where static libraries get built with position
independent code, OPENSSL_PIC was removed by mistake.  This adds it
back.

Reviewed-by: Tim Hudson <tjh@openssl.org>
Configure

index 38ef7f17cd2fb5c652ac8081860216c993633226..b6c8d8ce6c60c81c79b2f81e0daa719da7d31e7b 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -1042,6 +1042,10 @@ if ($disabled{pic})
        $target{shared_cflag} = $target{shared_ldflag} =
                $target{shared_rcflag} = "";
        }
+else
+       {
+       push @{$config{defines}}, "OPENSSL_PIC";
+       }
 
 if ($target{sys_id} ne "")
        {