We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4d2f45 commit 621680dCopy full SHA for 621680d
src/bin/lpython.cpp
@@ -1246,6 +1246,9 @@ int link_executable(const std::vector<std::string> &infiles,
1246
cmd += " -I " + rtlib_header_dir;
1247
cmd += " -L" + base_path
1248
+ " -Wl,-rpath," + base_path + " -l" + runtime_lib + " -lm";
1249
+ std::string py_version = "3.10";
1250
+ std::string py_flags = R"(-I $CONDA_PREFIX/include/python)" + py_version + R"( -L$CONDA_PREFIX/lib -Wl,-rpath -Wl,$CONDA_PREFIX/lib -lpython)" + py_version + R"()";
1251
+ cmd += " " + py_flags;
1252
int err = system(cmd.c_str());
1253
if (err) {
1254
std::cout << "The command '" + cmd + "' failed." << std::endl;
0 commit comments