Skip to content

Commit cc13eab

Browse files
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.
1 parent bfee2f7 commit cc13eab

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Running ``configure ... --with-openssl-rpath=X/Y/Z`` no longer fails to detect
2+
OpenSSL on macOS.

configure

Lines changed: 6 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6808,7 +6808,12 @@ AX_CHECK_OPENSSL([have_openssl=yes],[have_openssl=no])
68086808
AS_VAR_IF([GNULD], [yes], [
68096809
rpath_arg="-Wl,--enable-new-dtags,-rpath="
68106810
], [
6811-
rpath_arg="-Wl,-rpath="
6811+
if test "$ac_sys_system" = "Darwin"
6812+
then
6813+
rpath_arg="-Wl,-rpath,"
6814+
else
6815+
rpath_arg="-Wl,-rpath="
6816+
fi
68126817
])
68136818

68146819
AC_MSG_CHECKING([for --with-openssl-rpath])

0 commit comments

Comments
 (0)