Add solutions to an Arch Linux Clang and LLD error

Co-authored-by: dathide <47128084+Dathide@users.noreply.github.com>
This commit is contained in:
Max Hilbrunner
2023-05-05 13:11:24 +02:00
parent c48b82fe96
commit 8c9523a6ca

View File

@@ -379,6 +379,16 @@ created in the ``bin/`` folder.
It's still recommended to use GCC for production builds as they can be compiled using
link-time optimization, making the resulting binaries smaller and faster.
If this error occurs::
/usr/bin/ld: cannot find -l:libatomic.a: No such file or directory
There are two solutions:
- In your SCons command, add the parameter ``use_static_cpp=no``.
- Follow `these instructions <https://github.com/ivmai/libatomic_ops#installation-and-usage>`__ to configure, build, and
install ``libatomic_ops``. Then, copy ``/usr/lib/libatomic_ops.a`` to ``/usr/lib/libatomic.a``.
Using mold for faster development
---------------------------------