diff options
author | Ronald Oussoren <ronaldoussoren@mac.com> | 2023-12-28 08:42:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-28 08:42:05 (GMT) |
commit | cc13eabc7ce08accf49656e258ba500f74a1dae8 (patch) | |
tree | 17065f65914ea5838c468302ea866c598fd5fd85 | |
parent | bfee2f77e16f01a718c1044564ee624f1f2bc328 (diff) | |
download | cpython-cc13eabc7ce08accf49656e258ba500f74a1dae8.zip cpython-cc13eabc7ce08accf49656e258ba500f74a1dae8.tar.gz cpython-cc13eabc7ce08accf49656e258ba500f74a1dae8.tar.bz2 |
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.
-rw-r--r-- | Misc/NEWS.d/next/macOS/2023-12-23-22-41-07.gh-issue-110459.NaMBJy.rst | 2 | ||||
-rwxr-xr-x | configure | 7 | ||||
-rw-r--r-- | configure.ac | 7 |
3 files changed, 14 insertions, 2 deletions
diff --git a/Misc/NEWS.d/next/macOS/2023-12-23-22-41-07.gh-issue-110459.NaMBJy.rst b/Misc/NEWS.d/next/macOS/2023-12-23-22-41-07.gh-issue-110459.NaMBJy.rst new file mode 100644 index 0000000..44ffd85 --- /dev/null +++ b/Misc/NEWS.d/next/macOS/2023-12-23-22-41-07.gh-issue-110459.NaMBJy.rst @@ -0,0 +1,2 @@ +Running ``configure ... --with-openssl-rpath=X/Y/Z`` no longer fails to detect +OpenSSL on macOS. @@ -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 diff --git a/configure.ac b/configure.ac index e064848..bfdabc4 100644 --- a/configure.ac +++ b/configure.ac @@ -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]) |