How to rename a shared library to avoid same-name conflict?
问题 I found a library, libjson, that I am trying to build as a shared library and use in a project. Building is simple enough; after fixing a Makefile bug, # SHARED=1 make install will compile and install a .so in /usr/lib . The problem is that my system (Arch Linux) already has a library named libjson , which the Makefile thoughtlessly overwrites for me! Arch's library was installed as a dependency, so it can't be replaced. Presumably other distros would have a similar problem if they had a