- https://stackoverflow.com/questions/57476533/why-is-statically-linking-glibc-discouraged
- https://developers.redhat.com/articles/2023/08/31/how-we-ensure-statically-linked-applications-stay-way#
- https://sourceware.org/pipermail/libc-alpha/2023-May/148682.html
- https://patchwork.sourceware.org/project/glibc/patch/[email protected]/
- https://patchwork.ozlabs.org/project/glibc/list/?series=375732
- https://ffmpeg.org/pipermail/ffmpeg-user/2018-July/040460.html
- https://gitlab.com/packman.io/fully-static-ffmpeg-build
- https://sourceware.org/bugzilla/show_bug.cgi?id=27959
- https://stackoverflow.com/questions/31155824/dlopen-in-libc-and-libdl
- https://news.ycombinator.com/item?id=23816748
- https://savannah.gnu.org/patch/?9687
extern "C"
{
void * dlopen(const char *, int)
{
return nullptr;
}
void * dlmopen(long, const char *, int) // NOLINT
{
return nullptr;
}
int dlclose(void *)
{
return 0;
}
const char * dlerror()
{
return "ClickHouse does not allow dynamic library loading";
}
}