libatomic_ops-7.2d

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-7.4 platform.

Package Information

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/libatomic_ops

Installation of libatomic_ops

Install libatomic_ops by running the following commands:

sed -i 's#AM_CONFIG_HEADER#AC_CONFIG_HEADERS#' configure.ac &&
sed -i 's#AC_PROG_RANLIB#AC_LIBTOOL_DLOPEN\nAC_PROG_LIBTOOL#' configure.ac &&
sed -i 's#b_L#b_LTL#;s#\.a#.la#g;s#_a_#_la_#' src/Makefile.am &&
sed -i 's#\.a#.so#g;s#\.\./src/#../src/.libs/#g' tests/Makefile.am &&
sed -i 's#pkgdata#doc#' doc/Makefile.am &&
autoreconf -fi &&
./configure --prefix=/usr \
            --docdir=/usr/share/doc/libatomic_ops-7.2d \
            --disable-static &&
make

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

Now, as the root user:

make install

Command Explanations

sed -i 's#AM_CONFIG_HEADER ...: This sed fixes building with Automake 1.13.

sed -i 's#AC_PROG_RANLIB ...: These seds massage the autotool files so that a shared library is built, the tests pass, and the docs are installed in an appropriate directory.

autoreconf -fi: This regenerates the configure script and the Makefile.in files and installs a missing file.

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

Contents

Installed Programs: None
Installed Libraries: libatomic_ops.so and libatomic_ops_gpl.so
Installed Directory: /usr/include/libatomic_ops

Short Descriptions

libatomic_ops.so

contains functions for atomic memory operations.

Last updated on 2013-08-23 03:32:24 -0700