On 2017-08-28 22:50:23 +0200, Niels Möller wrote: > Dennis Clarke <dcla...@blastwave.org> writes: > > > In some manner the pre-existing libs were getting in the way likely > > because LD_LIBRARY_PATH=/usr/local/lib and thus the new libs in the > > build_dir/.libs were not used. > > LD_LIBRARY_PATH tends to override anything else. Don't use that for > anything but to run specific binaries which need it. > > Since this was a gnu/linux system, the usual way to make ld.so search > /usr/local/lib is via files under /etc/ld.so.conf.d (even if that's > system global, unlike LD_LIBRARY_PATH).
This only works if the user is root. If a non-root user wants to install libraries in his home directory, the right solution is to use LD_LIBRARY_PATH (since GCC doesn't use a run path by default). -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon) _______________________________________________ gmp-bugs mailing list gmp-bugs@gmplib.org https://gmplib.org/mailman/listinfo/gmp-bugs