MTProxy icon indicating copy to clipboard operation
MTProxy copied to clipboard

Make MTProxy compatible with non-glibc systems

Open marshall-lee opened this issue 4 years ago • 0 comments

MTProxy relies on some specific glibc features that not every libc supports. So if one wants to compile it on Alpine Linux some tweaks are required. I successfully compiled MTProxy with musl libc by doing the following:

  • backtrace function is non-standard. Use libexecinfo port if it's available in the system.
  • Change lrand48_r, mrand48_r, drand48_r, rand48_r to their standard counterparts.
  • Add -fcommon option to fix the build on the latest GCC versions.

marshall-lee avatar Sep 20 '21 19:09 marshall-lee