From fe0a9962cb1925565570e3c3866e0d5070789580 Mon Sep 17 00:00:00 2001 From: Ronald Oussoren Date: Sat, 23 Dec 2023 22:41:18 +0100 Subject: [PATCH] gh-110459: Make sure --with-openssl-rpath works on macOS On macOS the `-rpath` linker flag is spelled differently than on on platforms. --- .../macOS/2023-12-23-22-41-07.gh-issue-110459.NaMBJy.rst | 2 ++ configure | 7 ++++++- configure.ac | 7 ++++++- 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 Misc/NEWS.d/next/macOS/2023-12-23-22-41-07.gh-issue-110459.NaMBJy.rst 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 00000000000000..0413746f19fee3 --- /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. diff --git a/configure b/configure index 668a0efd77db0e..b9cb0b3dea86e5 100755 --- a/configure +++ b/configure @@ -27472,7 +27472,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 020553abd71b4f..8b1f3d2550992f 100644 --- a/configure.ac +++ b/configure.ac @@ -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])