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

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

On macOS the `-rpath` linker flag is spelled differently
than on on platforms.
This commit is contained in:
Ronald Oussoren 2023-12-28 09:42:05 +01:00 committed by GitHub
parent bfee2f77e1
commit cc13eabc7c
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

@ -27478,7 +27478,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

@ -6808,7 +6808,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])