From 597d24e2ab395991cb2048529714ea534c173591 Mon Sep 17 00:00:00 2001 From: Xiaofei Bai Date: Wed, 18 Aug 2021 07:57:26 +0000 Subject: [PATCH] Fix libdir path on darwin In current Configure script, libdir can be specified either an absolute path or relative, while in Configurations/shared-info.pl, on darwin system "-install_name" only accepts relative libdir path, and the program fails when receiving absolute libdir path. This PR is to fix this and match requirements of scripts. Reviewed-by: Paul Dale Reviewed-by: Richard Levitte Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/16393) --- 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 2b236b4b9b..abf2d98dcc 100644 --- a/Configurations/shared-info.pl +++ b/Configurations/shared-info.pl @@ -43,7 +43,7 @@ my %shared_info; 'darwin-shared' => { module_ldflags => '-bundle', shared_ldflag => '-dynamiclib -current_version $(SHLIB_VERSION_NUMBER) -compatibility_version $(SHLIB_VERSION_NUMBER)', - shared_sonameflag => '-install_name $(INSTALLTOP)/$(LIBDIR)/', + shared_sonameflag => '-install_name $(libdir)/', }, 'cygwin-shared' => { shared_ldflag => '-shared -Wl,--enable-auto-image-base',