summaryrefslogtreecommitdiff
path: root/src/lib/cross_linux.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/cross_linux.cc')
-rw-r--r--src/lib/cross_linux.cc7
1 files changed, 6 insertions, 1 deletions
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";
}