I have C libs in ~/local/bin, which my LD_RUN_PATH and LIBRARY_PATH variables 
include (and CPATH gets ~/local/include For autoconf packages this does the job 
for preferring my locally installed versions of libs, but apparently not for 
nim, since I get broken binaries (e.g. Nimxapp from nimx) that I can then fix 
in place with e.g.
    
    
    patchelf --set-rpath /home/bkerin/local/lib:/user/local/lib NimxApp
    

Is there a way to set up nimble to do what LD_RUN_PATH/LIBRARY_PATH/CPATH do 
for autoconf apps? I tried makeing a ~/.config/nim.cfg with these lines:
    
    
    --path="/home/bkerin/local/lib"
    --cincludes="/home/bkerin/local/include"
    --clibdir="/home/bkerin/local/lib"
    

But I still get a binary with only /usr/local/lib in RPATH. How to do this?

Reply via email to