Skip to content

Commit f2dc739

Browse files
ronaldoussorenkulikjak
authored andcommitted
pythongh-110459: Make sure --with-openssl-rpath works on macOS (python#113441)
* pythongh-110459: Make sure --with-openssl-rpath works on macOS On macOS the `-rpath` linker flag is spelled differently than on on platforms.
1 parent 47243d3 commit f2dc739

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed
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.

Diff for: configure

+6-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: configure.ac

+6-1
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)