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.5 platform.
Download (HTTP): http://www.hpl.hp.com/research/linux/atomic_ops/download/libatomic_ops-7.2e.tar.gz
Download MD5 sum: 7035692fec4db2659b06485040829e43
Download size: 244 KB
Estimated disk space required: 4.5 MB (additional 0.6 MB for tests)
Estimated build time: Less than 0.1 SBU (additional less than 0.1 SBU for tests)
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.2e \ --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 2014-02-22 07:06:53 -0800