Relative Content

Tag Archive for linuxgcclinkerclangcross-compiling

Why can’t Clang/lld find `__dlopen`, `__dlclose` and `__dlsym`?

Following from this question, I am trying to compile a C/C++ project that targets an old Linux system. To have the old libraries at hand, I made a copy of the target root fs, and since GCC has hardcoded the library path I cannot really cross-compile against an old version of libc. Therefore I am using Clang + lld. The point is that when linking it complains about