You want to statically link glibc in your shared library.
You must not do this.
If you try, you will have the right to violate the C ++ One Definition Rule (ODR) rules. This is because some parts of glibc will be from the "old" version of your target machine, and some will be from the "new" version of your library. The result is undefined behavior.
: glibc (, ). , glibc ( glibc). , glibc, , .
memcpy , . fooobar.com/questions/154960/... - : fooobar.com/questions/98585/...