Skip to content

Commit 72073ca

Browse files
[3.12] gh-110459: Make sure --with-openssl-rpath works on macOS (GH-113441) (#113535)
gh-110459: Make sure --with-openssl-rpath works on macOS (GH-113441) * gh-110459: Make sure --with-openssl-rpath works on macOS On macOS the `-rpath` linker flag is spelled differently than on on platforms. (cherry picked from commit cc13eab) Co-authored-by: Ronald Oussoren <[email protected]>
1 parent c1b396c commit 72073ca

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
@@ -7002,7 +7002,12 @@ AX_CHECK_OPENSSL([have_openssl=yes],[have_openssl=no])
70027002
AS_VAR_IF([GNULD], [yes], [
70037003
rpath_arg="-Wl,--enable-new-dtags,-rpath="
70047004
], [
7005-
rpath_arg="-Wl,-rpath="
7005+
if test "$ac_sys_system" = "Darwin"
7006+
then
7007+
rpath_arg="-Wl,-rpath,"
7008+
else
7009+
rpath_arg="-Wl,-rpath="
7010+
fi
70067011
])
70077012

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

0 commit comments

Comments
 (0)