On 12/23/20 1:14 PM, Aisha Tammy wrote:

I've recently had the same problem for TACC/Lmod which uses
autotools to get lua versions and lua.cpath and lua.path and did infact manage
to push the horrendously large patch upstream -
https://github.com/TACC/Lmod/commit/0913bf05dd7e8f478f69d5297e26d744ddb5073a

Maybe something similar can work for your use case?

Yes, patching the build system works.


The problem with just using -L/path/to/lua/lib/ -llua would be loading
library at runtime, unless autotools is smart enough to actually change this
CFLAGs into a -Wl,-rpath,/path/to/lua/lib -L/path/to/lua/lib -llua.
I am not sure how intelligent autotools is to be able to do this or not.


We already add entries to /etc/ld.so.conf to make things like slotted LLVM work.

Reply via email to