On 3/21/23 16:43, Ekaitz Zarraga wrote: > >>> Have you tried something like >>> >>> (add-before 'configure 'set-ldflags >>> (lambda _ >>> (substitute* "tecmake.mak" >>> (("STDLDFLAGS := -shared" all) (string-append all " >>> -Wl,-rpath="#$output "/lib"))))) >>> >>> not tested though. >> >> >> I'll give a try to this. I didn't try it! >> Thanks! >> > > Worked! Thank you!! There is a confusion (which I also had) linking LDFLAGS to GCC, but there is no connection, see for example this stackoverflow answer: https://stackoverflow.com/a/16047559. There are only a handful of environment variables affecting the GCC compiler (https://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html) and none of them is for setting rpaths. Therefore you have to provide them explicitly to the compiler via normal flags. -- Reza Housseini This message is signed with my GnuPG key: C0F3 0812 9AF2 80F4 0830 C2C1 C375 C6AF 0512 5C52