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 <levitte@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11815)
This commit is contained in:
Thomas Dwyer III 2020-05-13 10:32:47 -07:00 committed by Matt Caswell
parent fab8fde3fc
commit 6c3cbc9391

View File

@ -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'}; },