libatomic_ops-1.2

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.1 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#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 '/a.h gcc\/ia/d' src/atomic_ops/sysdeps/Makefile.am &&
sed -i 's# COPYING##;s#pkgdata#doc#' doc/Makefile.am &&
sed -i 's#\.a#.so#g;s#\.\./src/#../src/.libs/#g' tests/Makefile.am &&
autoreconf -i &&
./configure --prefix=/usr --disable-static \
  --docdir=/usr/share/doc/libatomic_ops-1.2 &&
make

To check the results, issue make check.

Now, as the root user:

make install

Command Explanations

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 the right place.

autoreconf -i: This regenerates the configure script and the Makefile.in files and installs some missing files.

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

--docdir=/usr/share/doc/libatomic_ops-1.2: This option installs the documentation in a versioned directory.

Contents

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

Short Descriptions

libatomic_ops{,_gpl}.so

contain functions for atomic memory operations.

Last updated on 2012-05-10 13:14:47 +0000