PKGBUILDs/community/polymake/polymake-fix-lib-loading.patch

14 lines
626 B
Diff
Raw Normal View History

2019-03-02 21:30:07 +00:00
diff --git a/lib/callable/src/perl/Main.cc b/lib/callable/src/perl/Main.cc
index 6267025..2c96dc1 100644
--- a/lib/callable/src/perl/Main.cc
+++ b/lib/callable/src/perl/Main.cc
@@ -109,7 +109,7 @@ void deduce_install_dirs(std::string lib_path, std::string& install_top, std::st
{
const char stem_name[]="libpolymake";
constexpr size_t stem_size=sizeof(stem_name)-1;
- auto basename_start=lib_path.find(stem_name, stem_size);
+ auto basename_start=lib_path.find(stem_name);
if (basename_start == std::string::npos)
throw std::runtime_error("polymake::Main - weird callable library path " + lib_path);