From: Thomas Dwyer III Date: Wed, 13 May 2020 17:32:47 +0000 (-0700) Subject: Pass "-z defs" to the linker via "-Wl,-z,defs" rather than with gcc's -z X-Git-Tag: openssl-3.0.0-alpha2~6 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6c3cbc939125e24e65c7d6e82319d811e6e29c0f;p=oweals%2Fopenssl.git Pass "-z defs" to the linker via "-Wl,-z,defs" rather than with gcc's -z flag (which is not supported by older compilers). CLA: trivial Reviewed-by: Richard Levitte Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/11815) --- diff --git a/Configurations/shared-info.pl b/Configurations/shared-info.pl index a673c7cada..461ce3c51f 100644 --- a/Configurations/shared-info.pl +++ b/Configurations/shared-info.pl @@ -36,7 +36,7 @@ my %shared_info; (grep /(?:^|\s)-fsanitize/, @{$config{CFLAGS}}, @{$config{cflags}}) ? '' - : '-z defs', + : '-Wl,-z,defs', }; }, 'bsd-gcc-shared' => sub { return $shared_info{'linux-shared'}; },