[b779049] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[bed6dae2] | 7 | <!ENTITY libatomic_ops-download-http
|
---|
| 8 | "http://www.hpl.hp.com/research/linux/atomic_ops/download/libatomic_ops-&libatomic_ops-version;.tar.gz">
|
---|
[b779049] | 9 | <!ENTITY libatomic_ops-download-ftp " ">
|
---|
[4e143323] | 10 | <!ENTITY libatomic_ops-md5sum "e6997db4875909e11b514cd5c3caa3cf">
|
---|
[9662c41] | 11 | <!ENTITY libatomic_ops-size "228 KB">
|
---|
[4e143323] | 12 | <!ENTITY libatomic_ops-buildsize "5.0 MB">
|
---|
[9662c41] | 13 | <!ENTITY libatomic_ops-time "0.1 SBU">
|
---|
[b779049] | 14 | ]>
|
---|
| 15 |
|
---|
| 16 | <sect1 id="libatomic_ops" xreflabel="libatomic_ops-&libatomic_ops-version;">
|
---|
| 17 | <?dbhtml filename="libatomic_ops.html"?>
|
---|
| 18 |
|
---|
| 19 | <sect1info>
|
---|
| 20 | <othername>$LastChangedBy$</othername>
|
---|
| 21 | <date>$Date$</date>
|
---|
| 22 | </sect1info>
|
---|
| 23 |
|
---|
| 24 | <title>libatomic_ops-&libatomic_ops-version;</title>
|
---|
| 25 |
|
---|
| 26 | <indexterm zone="libatomic_ops">
|
---|
| 27 | <primary sortas="a-libatomic_ops">libatomic_ops</primary>
|
---|
| 28 | </indexterm>
|
---|
| 29 |
|
---|
| 30 | <sect2 role="package">
|
---|
| 31 | <title>Introduction to libatomic_ops</title>
|
---|
| 32 |
|
---|
[bed6dae2] | 33 | <para>
|
---|
| 34 | <application>libatomic_ops</application> provides implementations for
|
---|
| 35 | atomic memory update operations on a number of architectures. This allows
|
---|
| 36 | direct use of these in reasonably portable code. Unlike earlier similar
|
---|
| 37 | packages, this one explicitly considers memory barrier semantics, and
|
---|
| 38 | allows the construction of code that involves minimum overhead across a
|
---|
| 39 | variety of architectures.
|
---|
| 40 | </para>
|
---|
| 41 |
|
---|
[4e143323] | 42 | &lfs72_checked;
|
---|
[b779049] | 43 |
|
---|
| 44 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 45 | <itemizedlist spacing="compact">
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download (HTTP): <ulink url="&libatomic_ops-download-http;"/></para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Download (FTP): <ulink url="&libatomic_ops-download-ftp;"/></para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Download MD5 sum: &libatomic_ops-md5sum;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Download size: &libatomic_ops-size;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>Estimated disk space required: &libatomic_ops-buildsize;</para>
|
---|
| 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
| 62 | <para>Estimated build time: &libatomic_ops-time;</para>
|
---|
| 63 | </listitem>
|
---|
| 64 | </itemizedlist>
|
---|
| 65 |
|
---|
[bed6dae2] | 66 | <para condition="html" role="usernotes">
|
---|
| 67 | User Notes: <ulink url="&blfs-wiki;/libatomic_ops"/>
|
---|
| 68 | </para>
|
---|
[b779049] | 69 | </sect2>
|
---|
| 70 |
|
---|
| 71 | <sect2 role="installation">
|
---|
| 72 | <title>Installation of libatomic_ops</title>
|
---|
| 73 |
|
---|
[bed6dae2] | 74 | <para>
|
---|
| 75 | Install <application>libatomic_ops</application> by running the following
|
---|
| 76 | commands:
|
---|
| 77 | </para>
|
---|
| 78 |
|
---|
| 79 | <screen><userinput>sed -i 's#AC_PROG_RANLIB#AC_LIBTOOL_DLOPEN\nAC_PROG_LIBTOOL#' configure.ac &&
|
---|
| 80 | sed -i 's#b_L#b_LTL#;s#\.a#.la#g;s#_a_#_la_#' src/Makefile.am &&
|
---|
| 81 | sed -i 's#\.a#.so#g;s#\.\./src/#../src/.libs/#g' tests/Makefile.am &&
|
---|
[b3bb56b] | 82 | sed -i 's#pkgdata#doc#' doc/Makefile.am &&
|
---|
[bed6dae2] | 83 | autoreconf -i &&
|
---|
[4e143323] | 84 | ./configure --prefix=/usr \
|
---|
| 85 | --docdir=/usr/share/doc/libatomic_ops-&libatomic_ops-version; \
|
---|
| 86 | --disable-static &&
|
---|
[b779049] | 87 | make</userinput></screen>
|
---|
| 88 |
|
---|
[4e143323] | 89 | <para>
|
---|
| 90 | To check the results, issue
|
---|
| 91 | <command>LD_LIBRARY_PATH=../src/.libs make check</command>.
|
---|
| 92 | </para>
|
---|
[b779049] | 93 |
|
---|
[bed6dae2] | 94 | <para>
|
---|
| 95 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 96 | </para>
|
---|
[b779049] | 97 |
|
---|
[852e5ac] | 98 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[cb59f46d] | 99 |
|
---|
[852e5ac] | 100 | </sect2>
|
---|
| 101 |
|
---|
| 102 | <sect2 role="commands">
|
---|
| 103 | <title>Command Explanations</title>
|
---|
| 104 |
|
---|
[bed6dae2] | 105 | <para>
|
---|
| 106 | <command>sed -i 's#AC_PROG_RANLIB ...</command>: These seds massage the
|
---|
[b3bb56b] | 107 | autotool files so that a shared library is built, the tests pass and the
|
---|
| 108 | docs are installed where we want.
|
---|
[bed6dae2] | 109 | </para>
|
---|
| 110 |
|
---|
| 111 | <para>
|
---|
| 112 | <command>autoreconf -i</command>: This regenerates the configure script
|
---|
[9662c41] | 113 | and the Makefile.in files and installs a missing file.
|
---|
[bed6dae2] | 114 | </para>
|
---|
[b779049] | 115 |
|
---|
[bed6dae2] | 116 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 117 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 118 |
|
---|
[b779049] | 119 | </sect2>
|
---|
| 120 |
|
---|
| 121 | <sect2 role="content">
|
---|
| 122 | <title>Contents</title>
|
---|
| 123 |
|
---|
| 124 | <segmentedlist>
|
---|
| 125 | <segtitle>Installed Libraries</segtitle>
|
---|
| 126 | <segtitle>Installed Directory</segtitle>
|
---|
| 127 |
|
---|
| 128 | <seglistitem>
|
---|
[bed6dae2] | 129 | <seg>
|
---|
[4e143323] | 130 | libatomic_ops.so and libatomic_ops_gpl.so
|
---|
| 131 | </seg>
|
---|
| 132 | <seg>
|
---|
| 133 | /usr/include/libatomic_ops
|
---|
[bed6dae2] | 134 | </seg>
|
---|
[b779049] | 135 | </seglistitem>
|
---|
| 136 | </segmentedlist>
|
---|
| 137 |
|
---|
| 138 | <variablelist>
|
---|
| 139 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 140 | <?dbfo list-presentation="list"?>
|
---|
| 141 | <?dbhtml list-presentation="table"?>
|
---|
| 142 |
|
---|
| 143 | <varlistentry id="libatomic_ops-lib">
|
---|
[4e143323] | 144 | <term><filename class='libraryfile'>libatomic_ops.so</filename></term>
|
---|
[b779049] | 145 | <listitem>
|
---|
[4e143323] | 146 | <para>contains functions for atomic memory operations.</para>
|
---|
[b779049] | 147 | <indexterm zone="libatomic_ops libatomic_ops-lib">
|
---|
[bed6dae2] | 148 | <primary sortas="c-libatomic_ops">libatomic_ops.so</primary>
|
---|
[b779049] | 149 | </indexterm>
|
---|
| 150 | </listitem>
|
---|
| 151 | </varlistentry>
|
---|
[4e143323] | 152 |
|
---|
[b779049] | 153 | </variablelist>
|
---|
[4e143323] | 154 |
|
---|
[b779049] | 155 | </sect2>
|
---|
[4e143323] | 156 |
|
---|
[b779049] | 157 | </sect1>
|
---|