X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fcross_linux.cc;h=87806b1e60d9038598e4832eb79767a6cead44f2;hb=641e7622ac98f6e28e82ac2ebb335f278a9120f8;hp=7b807a44120ac10d62fc249896ac6fd894eb69bd;hpb=ba66249ab052bb27f49e12a772f366635b08ac2e;p=dcpomatic.git 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"; }