From 641e7622ac98f6e28e82ac2ebb335f278a9120f8 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 4 Jun 2020 20:47:36 +0200 Subject: Fall back to $PATH when searching for dcpomatic2_openssl. --- src/lib/cross_linux.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/cross_linux.cc b/src/lib/cross_linux.cc index 7b807a441..87806b1e6 100644 --- a/src/lib/cross_linux.cc +++ b/src/lib/cross_linux.cc @@ -157,7 +157,12 @@ directory_containing_executable () boost::filesystem::path openssl_path () { - return directory_containing_executable() / "dcpomatic2_openssl"; + boost::filesystem::path p = directory_containing_executable() / "dcpomatic2_openssl"; + if (boost::filesystem::is_regular_file(p)) { + return p; + } + + return "dcpomatic2_openssl"; } -- cgit v1.2.3