rdbo / libmem

Advanced Game Hacking Library for C, Modern C++, Rust and Python (Windows/Linux/FreeBSD) (Process/Memory Hacking) (Hooking/Detouring) (Cross Platform) (x86/x64) (DLL/SO Injection) (Internal/External) (Assembler/Disassembler)
GNU Affero General Public License v3.0
807 stars 98 forks source link

CMake: create a fully static binary of libmem #66

Closed rdbo closed 1 year ago

rdbo commented 1 year ago

CMake seems to be generating libmem.a, but it is not really statically linked against its dependencies, like Capstone, Keystone, and LIEF. This only happens when it tries to build libmem as a static library, and link all of the other static libraries into it. When generating a shared library, it does get properly statically linked. Doing this would avoid issues like undefined references on user programs that are only linking against libmem, and not its dependencies.

rdbo commented 1 year ago

Done: 8994307fabc02f5bafc691db6fc475382ff3e95e