Changeset bed6dae2


Ignore:
Timestamp:
05/10/2012 01:14:47 PM (9 years ago)
Author:
Andrew Benton <andy@…>
Branches:
10.0, 10.1, 11.0, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, krejzi/svn, nosym, perl-modules, qt5new, systemd-11177, systemd-13485, trunk, xry111/git-date, xry111/git-date-for-trunk, xry111/git-date-test
Children:
4067d492
Parents:
5603a81
Message:

Hacked at the libatomic_ops automake files so that a shared library is built

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@10152 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/genlib/libatomic_ops.xml

    r5603a81 rbed6dae2  
    55  %general-entities;
    66
    7   <!ENTITY libatomic_ops-download-http "http://www.hpl.hp.com/research/linux/atomic_ops/download/libatomic_ops-&libatomic_ops-version;.tar.gz">
     7  <!ENTITY libatomic_ops-download-http
     8    "http://www.hpl.hp.com/research/linux/atomic_ops/download/libatomic_ops-&libatomic_ops-version;.tar.gz">
    89  <!ENTITY libatomic_ops-download-ftp  " ">
    910  <!ENTITY libatomic_ops-md5sum        "1b65e48271c81e3fa2d7a9a69bab7504">
     
    3031    <title>Introduction to libatomic_ops</title>
    3132
    32     <para><application>libatomic_ops</application> provides implementations for
    33     atomic memory update operations on a number of architectures. This allows
    34     direct use of these in reasonably portable code. Unlike earlier similar
    35     packages, this one explicitly considers memory barrier semantics, and
    36     allows the construction of code that involves minimum overhead across a
    37     variety of architectures. </para>
     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
     42    &lfs71_checked;
    3843
    3944    <bridgehead renderas="sect3">Package Information</bridgehead>
     
    5964    </itemizedlist>
    6065
    61     <para condition="html" role="usernotes">User Notes:
    62     <ulink url="&blfs-wiki;/libatomic_ops"/></para>
    63 
     66    <para condition="html" role="usernotes">
     67      User Notes: <ulink url="&blfs-wiki;/libatomic_ops"/>
     68    </para>
    6469  </sect2>
    6570
     
    6772    <title>Installation of libatomic_ops</title>
    6873
    69     <para>Install <application>libatomic_ops</application> by running the following
    70     commands:</para>
     74    <para>
     75      Install <application>libatomic_ops</application> by running the following
     76      commands:
     77    </para>
    7178
    72 <screen><userinput>sed -i \
    73     's|datadir)/@PACKAGE@|datadir)/doc/@PACKAGE@/@PACKAGE_VERSION@|' \
    74     doc/Makefile.in &amp;&amp;
    75 ./configure --prefix=/usr &amp;&amp;
     79<screen><userinput>sed -i 's#AC_PROG_RANLIB#AC_LIBTOOL_DLOPEN\nAC_PROG_LIBTOOL#' configure.ac &amp;&amp;
     80sed -i 's#b_L#b_LTL#;s#\.a#.la#g;s#_a_#_la_#' src/Makefile.am &amp;&amp;
     81sed -i '/a.h gcc\/ia/d' src/atomic_ops/sysdeps/Makefile.am &amp;&amp;
     82sed -i 's# COPYING##;s#pkgdata#doc#' doc/Makefile.am &amp;&amp;
     83sed -i 's#\.a#.so#g;s#\.\./src/#../src/.libs/#g' tests/Makefile.am &amp;&amp;
     84autoreconf -i &amp;&amp;
     85./configure --prefix=/usr --disable-static \
     86  --docdir=/usr/share/doc/libatomic_ops-&libatomic_ops-version; &amp;&amp;
    7687make</userinput></screen>
    7788
    7889    <para>To check the results, issue <command>make check</command>.</para>
    7990
    80     <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
     91    <para>
     92      Now, as the <systemitem class="username">root</systemitem> user:
     93    </para>
    8194
    8295<screen role="root"><userinput>make install</userinput></screen>
    83 
    8496  </sect2>
    8597
     
    8799    <title>Command Explanations</title>
    88100
    89     <para><command>sed -i ... doc/Makefile.in</command>: This command forces
    90     the documentation to be installed in a versioned directory.</para>
     101    <para>
     102      <command>sed -i 's#AC_PROG_RANLIB ...</command>: These seds massage the
     103      autotool files so that a shared library is built, the tests pass and the
     104      docs are installed in the right place.
     105    </para>
    91106
     107    <para>
     108      <command>autoreconf -i</command>: This regenerates the configure script
     109      and the Makefile.in files and installs some missing files.
     110    </para>
     111
     112    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     113      href="../../xincludes/static-libraries.xml"/>
     114
     115    <para>
     116      <option>--docdir=/usr/share/doc/libatomic_ops-&libatomic_ops-version;</option>:
     117      This option installs the documentation in a versioned directory.
     118    </para>
    92119  </sect2>
    93120
     
    96123
    97124    <segmentedlist>
    98       <segtitle>Installed Programs</segtitle>
    99125      <segtitle>Installed Libraries</segtitle>
    100126      <segtitle>Installed Directory</segtitle>
    101127
    102128      <seglistitem>
    103         <seg>None</seg>
    104         <seg>libatomic_ops.a and libatomic_ops_gpl.a</seg>
     129        <seg>
     130          libatomic_ops.so and libatomic_ops_gpl.so
     131        </seg>
    105132        <seg>/usr/include/libatomic_ops</seg>
    106133      </seglistitem>
     
    113140
    114141      <varlistentry id="libatomic_ops-lib">
    115         <term><filename class='libraryfile'>libatomic_ops{,_gpl}.a</filename></term>
     142        <term><filename class='libraryfile'>libatomic_ops{,_gpl}.so</filename></term>
    116143        <listitem>
    117           <para>contains functions for atomic memory operations.</para>
     144          <para>contain functions for atomic memory operations.</para>
    118145          <indexterm zone="libatomic_ops libatomic_ops-lib">
    119             <primary sortas="c-libatomic_ops">libatomic_ops.a</primary>
     146            <primary sortas="c-libatomic_ops">libatomic_ops.so</primary>
    120147          </indexterm>
    121148        </listitem>
    122149      </varlistentry>
    123 
    124150    </variablelist>
    125 
    126151  </sect2>
    127 
    128152</sect1>
Note: See TracChangeset for help on using the changeset viewer.