From 6c3cbc939125e24e65c7d6e82319d811e6e29c0f Mon Sep 17 00:00:00 2001 From: Thomas Dwyer III Date: Wed, 13 May 2020 10:32:47 -0700 Subject: [PATCH] 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) --- Configurations/shared-info.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'}; }, -- 2.25.1