-
I've got a project looking for zlib-ng, which is installed as: ❯ ls -la /usr/local/lib/libz-ng*
-rw-r--r-- 1 root root 249590 Feb 12 10:11 /usr/local/lib/libz-ng.a
lrwxrwxrwx 1 root root 16 Feb 12 10:11 /usr/local/lib/libz-ng.so -> libz-ng.so.2.1.6
lrwxrwxrwx 1 root root 16 Feb 12 10:11 /usr/local/lib/libz-ng.so.2 -> libz-ng.so.2.1.6
-rwxr-xr-x 1 root root 214904 Feb 12 10:11 /usr/local/lib/libz-ng.so.2.1.6 Without Mold, the gcc linker finds it, but Mold does not. Does mold use the paths in |
Beta Was this translation helpful? Give feedback.
Answered by
rui314
Feb 24, 2024
Replies: 1 comment 2 replies
-
Maybe your |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
GNU ld hardcodes some library paths, while mold and lld do not, facilitating cross-compilation. In general, it is not a good idea to rely on implicit library paths. You may want to fix your CMake file.