diff --git a/src/comms/qmp.nim b/src/comms/qmp.nim index 5b9f5c7..6304c4b 100644 --- a/src/comms/qmp.nim +++ b/src/comms/qmp.nim @@ -5,7 +5,7 @@ when existsEnv("QMPDIR"): else: const qmpDir {.strDefine.} = getHomeDir() & "lqcd/install/qmp" const qmpPassC = "-I" & qmpDir & "/include" -const qmpPassL* = "-L" & qmpDir & "/lib -lqmp" +const qmpPassL* = "-L" & qmpDir & "/lib -lqmp -Wl,-rpath=" & qmpDir & "/lib" static: echo "Using QMP: ", qmpDir echo "QMP compile flags: ", qmpPassC diff --git a/src/quda/qudaWrapperImpl.nim b/src/quda/qudaWrapperImpl.nim index 919d175..976eb8a 100644 --- a/src/quda/qudaWrapperImpl.nim +++ b/src/quda/qudaWrapperImpl.nim @@ -34,7 +34,8 @@ when nvhpcDir != "": {.passL: "-Wl,-rpath," & qudaDir & "/lib".} when cudaLibDir=="" and nvhpcDir=="": - {.passL: qudaDir & "/lib/libquda.a -lstdc++ ".} + {.passL: "-L" & qudaDir & "/lib -lquda -lstdc++ ".} + {.passL: "-Wl,-rpath," & qudaDir & "/lib".} const qmpDir {.strdefine.} = getEnv("QMPDIR") const qioDir {.strdefine.} = getEnv("QIODIR")