Issue with passL

2021-09-27 Thread mantielero
Thanks a lot. It worked. For the record, just fixing a few typos: const libPath = "/usr/local/lib" const libName = "occutils" {.passL: "-L" & libPath.} {.passL: "-Wl,-rpath," & libPath.} {.passL: "-l" & libName.} Run

Issue with passL

2021-09-27 Thread Clonk
You need to add -Wl,-rpath to linker options. const libPath = "/usr/local/lib" const libName =) "-loccutils" {.passL: "-L" & libPath} {.passL: "-Wl,-rpath," & libPath} {.passL: "-l" & libName} Run

Issue with passL

2021-09-27 Thread mantielero
I am trying to compile against a library but it is not finding it: error while loading shared libraries: liboccutils.so: cannot open shared object file: No such file or directory Run I am using: {.passL: "-L/usr/local/lib/ -loccutils".} Ru