Skip to content

Commit

Permalink
pythongh-110459: Make sure --with-openssl-rpath works on macOS
Browse files Browse the repository at this point in the history
On macOS the `-rpath` linker flag is spelled differently
than on on platforms.
  • Loading branch information
ronaldoussoren committed Dec 23, 2023
1 parent 93cf735 commit fe0a996
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
@@ -0,0 +1,2 @@
Running `configure ... --with-openssl-rpath=X/Y/Z` no longer fails to detect
OpenSSL on macOS.
7 changes: 6 additions & 1 deletion configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion configure.ac
Expand Up @@ -6807,7 +6807,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])
Expand Down

0 comments on commit fe0a996

Please sign in to comment.