Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b92b718

Browse files
committed
lpython.py: Fix python_lib and rtlib paths for JIT
1 parent 745177b commit b92b718

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
@@ -727,9 +727,9 @@ def get_rtlib_dir():
727727
python_path = "-I" + get_python_inc() + " "
728728
numpy_path = "-I" + get_include() + " "
729729
rt_path_01 = "-I" + get_rtlib_dir() + "/../libasr/runtime "
730-
rt_path_02 = "-L" + get_rtlib_dir() + " -Wl,-rpath " \
730+
rt_path_02 = "-L" + get_rtlib_dir() + " -Wl,-rpath," \
731731
+ get_rtlib_dir() + " -llpython_runtime "
732-
python_lib = "-L" + get_python_lib() + "/../.. -lpython" + \
732+
python_lib = "-L" + get_python_lib() + "/../.." + f" -Wl,-rpath,{get_python_lib()+'/../..'}" + " -lpython" + \
733733
get_python_version() + " -lm"
734734

735735
# ----------------------------------------------------------------------

0 commit comments

Comments
 (0)