Skip to content

Commit 4219b92

Browse files
committed
Add an option to soft link besides copying
The document suggests copy `/usr/lib/libatomic_ops.a` to `/usr/lib/libatomic.a`. Instead of copying, using a soft link to libatomic_ops is also an option. The reason to soft link is also added. I have successfully built Godot by using soft link.
1 parent 7f97b67 commit 4219b92

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

contributing/development/compiling/compiling_for_linuxbsd.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,9 @@ There are two solutions:
387387

388388
- In your SCons command, add the parameter ``use_static_cpp=no``.
389389
- Follow `these instructions <https://github.com/ivmai/libatomic_ops#installation-and-usage>`__ to configure, build, and
390-
install ``libatomic_ops``. Then, copy ``/usr/lib/libatomic_ops.a`` to ``/usr/lib/libatomic.a``.
390+
install ``libatomic_ops``. Then, copy ``/usr/lib/libatomic_ops.a`` to ``/usr/lib/libatomic.a``, or create a soft link
391+
to ``libatomic_ops`` by command ``ln -s /usr/lib/libatomic_ops.a /usr/lib/libatomic.a``. The soft link can ensure the
392+
latest ``libatomic_ops`` will be used without the need to copy it everytime when it is updated.
391393

392394
Using mold for faster development
393395
---------------------------------

0 commit comments

Comments
 (0)