58bbe93
--- lib/callable/src/perl/Main.cc.orig	2022-01-14 03:46:51.000000000 -0700
58bbe93
+++ lib/callable/src/perl/Main.cc	2022-03-05 21:24:12.840080722 -0700
58bbe93
@@ -110,6 +110,8 @@ void deduce_install_dirs(std::string lib
58bbe93
 {
58bbe93
    const char stem_name[]="libpolymake";
58bbe93
    constexpr size_t stem_size=sizeof(stem_name)-1;
58bbe93
+   if (lib_path.rfind("/lib", 0) == 0)
58bbe93
+      lib_path = "/usr" + lib_path;
58bbe93
    auto basename_start=lib_path.rfind(stem_name);
58bbe93
    if (basename_start == std::string::npos)
58bbe93
       throw std::runtime_error("polymake::Main - weird callable library path " + lib_path);