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.
Download (HTTP): http://www.hpl.hp.com/research/linux/atomic_ops/download/libatomic_ops-1.2.tar.gz
Download MD5 sum: 1b65e48271c81e3fa2d7a9a69bab7504
Download size: 184 KB
Estimated disk space required: 1.4 MB
Estimated build time: less than 0.1 SBU
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/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
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.
Last updated on 2012-05-10 13:14:47 +0000