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.
Download (HTTP): http://www.hpl.hp.com/research/linux/atomic_ops/download/libatomic_ops-7.2d.tar.gz
Download MD5 sum: e6997db4875909e11b514cd5c3caa3cf
Download size: 228 KB
Estimated disk space required: 5.0 MB
Estimated build time: 0.1 SBU
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/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
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.
Last updated on 2013-08-23 03:32:24 -0700