Skip to content

Commit 3dbea5f

Browse files
authored
Next (#12)
1 parent 5867a3c commit 3dbea5f

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

mod.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -223,13 +223,13 @@ void Python3Module::link(maiken::Application& a, YAML::Node const& node) KTHROW(
223223
auto const prefx = py_prefix();
224224

225225
if (prefx.size())
226-
if (auto const lib = kul::Dir(kul::Dir::JOIN(prefx, "lib"))) {
227-
if (auto const needle = std::string{"-L" + lib.real()};
228-
linker.find(needle) != std::string::npos) {
229-
kul::String::REPLACE_ALL(linker, needle + " ", "");
230-
a.addLibpath(lib.real());
231-
}
232-
}
226+
if (auto const lib = kul::Dir(kul::Dir::JOIN(prefx, "lib"))) a.addLibpath(lib.real());
227+
228+
#if defined(_WIN32) // or fallback
229+
if (prefx.size())
230+
if (auto const lib = kul::Dir{"libs", python_exe.dir()}) // windows fallback
231+
a.addLibpath(lib.escm());
232+
#endif
233233

234234
#if defined(_WIN32) // or fallback
235235
if (prefx.size())

0 commit comments

Comments
 (0)