glfs/general/genlib/libatomic_ops.xml
Ken Moffat e173352123 tags
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@16409 af4574ff-66df-0310-9fd7-8a98e5e911e0
2015-09-14 21:12:10 +00:00

183 lines
5.4 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY libatomic_ops-download-http
"http://www.ivmaisoft.com/_bin/atomic_ops//libatomic_ops-&libatomic_ops-version;.tar.gz">
<!ENTITY libatomic_ops-download-ftp " ">
<!ENTITY libatomic_ops-md5sum "1d6538604b314d2fccdf86915e5c0857">
<!ENTITY libatomic_ops-size "456 KB">
<!ENTITY libatomic_ops-buildsize "5.3 MB (additional 1.9 MB for tests)">
<!ENTITY libatomic_ops-time "less than 0.1 SBU (additional less than 0.1 SBU for tests)">
]>
<sect1 id="libatomic_ops" xreflabel="libatomic_ops-&libatomic_ops-version;">
<?dbhtml filename="libatomic_ops.html"?>
<sect1info>
<othername>$LastChangedBy$</othername>
<date>$Date$</date>
</sect1info>
<title>libatomic_ops-&libatomic_ops-version;</title>
<indexterm zone="libatomic_ops">
<primary sortas="a-libatomic_ops">libatomic_ops</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to libatomic_ops</title>
<para>
<application>libatomic_ops</application> 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.
</para>
&lfs78_checked;
<bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Download (HTTP): <ulink url="&libatomic_ops-download-http;"/>
</para>
</listitem>
<listitem>
<para>
Download (FTP): <ulink url="&libatomic_ops-download-ftp;"/>
</para>
</listitem>
<listitem>
<para>
Download MD5 sum: &libatomic_ops-md5sum;
</para>
</listitem>
<listitem>
<para>
Download size: &libatomic_ops-size;
</para>
</listitem>
<listitem>
<para>
Estimated disk space required: &libatomic_ops-buildsize;
</para>
</listitem>
<listitem>
<para>
Estimated build time: &libatomic_ops-time;
</para>
</listitem>
</itemizedlist>
<para condition="html" role="usernotes">
User Notes: <ulink url="&blfs-wiki;/libatomic_ops"/>
</para>
</sect2>
<sect2 role="installation">
<title>Installation of libatomic_ops</title>
<para>
Install <application>libatomic_ops</application> by running the following
commands:
</para>
<screen><userinput>sed -i 's#pkgdata#doc#' doc/Makefile.am &amp;&amp;
autoreconf -fi &amp;&amp;
./configure --prefix=/usr \
--enable-shared \
--disable-static \
--docdir=/usr/share/doc/libatomic_ops-&libatomic_ops-version; &amp;&amp;
make</userinput></screen>
<para>
To check the results, issue
<command>LD_LIBRARY_PATH=../src/.libs make check</command>.
</para>
<para>
Now, as the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>make install &amp;&amp;
mv -v /usr/share/libatomic_ops/* \
/usr/share/doc/libatomic_ops-&libatomic_ops-version; &amp;&amp;
rm -vrf /usr/share/libatomic_ops</userinput></screen>
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
<para>
<command>sed -i ...</command>: This <command>sed</command> makes the docs
to be installed in an appropriate directory.
</para>
<para>
<command>autoreconf -fi</command>: This regenerates the
<command>configure</command> script and the
<filename>Makefile.in</filename>.
</para>
<para>
<parameter>--enable-shared</parameter>: This switch enables building of the
<filename class="libraryfile">libatomic_ops</filename> shared libraries.
</para>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="../../xincludes/static-libraries.xml"/>
</sect2>
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directory</segtitle>
<seglistitem>
<seg>
None
</seg>
<seg>
libatomic_ops.so and libatomic_ops_gpl.so
</seg>
<seg>
/usr/include/libatomic_ops and
/usr/share/doc/libatomic_ops-&libatomic_ops-version;
</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="libatomic_ops-lib">
<term><filename class="libraryfile">libatomic_ops.so</filename></term>
<listitem>
<para>
contains functions for atomic memory operations.
</para>
<indexterm zone="libatomic_ops libatomic_ops-lib">
<primary sortas="c-libatomic_ops">libatomic_ops.so</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>