[3.12] gh-110459: Make sure --with-openssl-rpath works on macOS (GH-113441) (#113535)

gh-110459: Make sure --with-openssl-rpath works on macOS (GH-113441)

* gh-110459: Make sure --with-openssl-rpath works on macOS

On macOS the `-rpath` linker flag is spelled differently
than on on platforms.
(cherry picked from commit cc13eabc7c)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
This commit is contained in:
Miss Islington (bot) 2023-12-28 10:21:12 +01:00 committed by GitHub
parent c1b396cdf3
commit 72073ca560
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 2 deletions

View file

@ -0,0 +1,2 @@
Running ``configure ... --with-openssl-rpath=X/Y/Z`` no longer fails to detect
OpenSSL on macOS.

7
configure generated vendored
View file

@ -28114,7 +28114,12 @@ then :
else $as_nop
rpath_arg="-Wl,-rpath="
if test "$ac_sys_system" = "Darwin"
then
rpath_arg="-Wl,-rpath,"
else
rpath_arg="-Wl,-rpath="
fi
fi

View file

@ -7002,7 +7002,12 @@ AX_CHECK_OPENSSL([have_openssl=yes],[have_openssl=no])
AS_VAR_IF([GNULD], [yes], [
rpath_arg="-Wl,--enable-new-dtags,-rpath="
], [
rpath_arg="-Wl,-rpath="
if test "$ac_sys_system" = "Darwin"
then
rpath_arg="-Wl,-rpath,"
else
rpath_arg="-Wl,-rpath="
fi
])
AC_MSG_CHECKING([for --with-openssl-rpath])