Introduction to libatomic_ops

libatomic_ops provides implementations for atomic memory update operations on a number of architectures. This allows direct use of these in reasonably portable code. Unlike earlier similar packages, this one explicitly considers memory barrier semantics, and allows the construction of code that involves minimum overhead across a variety of architectures.

This package is known to build and work properly using an LFS-8.0 platform.

Package Information

User Notes:

Installation of libatomic_ops

Install libatomic_ops by running the following commands:

sed -i 's#pkgdata#doc#' doc/ &&
autoreconf -fi &&
./configure --prefix=/usr    \
            --enable-shared  \
            --disable-static \
            --docdir=/usr/share/doc/libatomic_ops-7.4.4 &&

To check the results, issue LD_LIBRARY_PATH=../src/.libs make check.

Now, as the root user:

make install &&
mv -v   /usr/share/libatomic_ops/* \
        /usr/share/doc/libatomic_ops-7.4.4 &&
rm -vrf /usr/share/libatomic_ops

Command Explanations

sed -i ...: This sed makes the docs to be installed in an appropriate directory.

autoreconf -fi: This regenerates the configure script and the

--enable-shared: This switch enables building of the libatomic_ops shared libraries.

--disable-static: This switch prevents installation of static versions of the libraries.


Installed Programs: None
Installed Libraries: and
Installed Directory: /usr/include/libatomic_ops and /usr/share/doc/libatomic_ops-7.4.4

Short Descriptions

contains functions for atomic memory operations.

Last updated on 2017-02-14 16:20:11 -0800