Enhance and update the docs of the internal ossl_provider API
[openssl.git] / Configurations / shared-info.pl
index f821ad7e8dc73662f4f433095db2cd975984ff2c..f9420785f245a54e66854efc1bcc8b8d5bb5d8d8 100644 (file)
@@ -32,7 +32,11 @@ my %shared_info;
         return {
             %{$shared_info{'gnu-shared'}},
             shared_defflag    => '-Wl,--version-script=',
-            dso_ldflags       => '-z defs',
+            dso_ldflags       =>
+                (grep /(?:^|\s)-fsanitize/,
+                 @{$config{CFLAGS}}, @{$config{cflags}})
+                ? ''
+                : '-z defs',
         };
     },
     'bsd-gcc-shared' => sub { return $shared_info{'linux-shared'}; },