liblock - make it difficult to link against a shared object library
liblock lib.so
The liblock(1) utility makes it difficult for users to link against the shared object library, lib.so. The ld(1) command will issue a warning if a user attempts to link against a locked library.
Any user who can write to the library can lock it using liblock(1).
Caution
The liblock(1) utility does not provide strong protection, but it can reduce the likelihood of unwanted use.
The liblock(1) utility exits with status 0 for success, and >0 if an error occurred.
ld(1)