Skip to content

Commit 91207c9

Browse files
committed
lpython.py: Fix python_lib and rtlib paths for JIT
1 parent d9a691b commit 91207c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runtime/lpython/lpython.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -717,9 +717,9 @@ def get_rtlib_dir():
717717
python_path = "-I" + get_python_inc() + " "
718718
numpy_path = "-I" + get_include() + " "
719719
rt_path_01 = "-I" + get_rtlib_dir() + "/../libasr/runtime "
720-
rt_path_02 = "-L" + get_rtlib_dir() + " -Wl,-rpath " \
720+
rt_path_02 = "-L" + get_rtlib_dir() + " -Wl,-rpath," \
721721
+ get_rtlib_dir() + " -llpython_runtime "
722-
python_lib = "-L" + get_python_lib() + "/../.. -lpython" + \
722+
python_lib = "-L" + get_python_lib() + "/../.." + f" -Wl,-rpath,{get_python_lib()+'/../..'}" + " -lpython" + \
723723
get_python_version() + " -lm"
724724

725725
# ----------------------------------------------------------------------

0 commit comments

Comments
 (0)