Changeset dc40cb9


Ignore:
Timestamp:
02/12/2012 04:58:20 PM (12 years ago)
Author:
Andrew Benton <andy@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 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, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
112fefc
Parents:
5f903c6
Message:

added -fPIC to a52dec's CFLAGS

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • multimedia/libdriv/liba52.xml

    r5f903c6 rdc40cb9  
    55  %general-entities;
    66
    7   <!ENTITY liba52-download-http "http://liba52.sourceforge.net/files/a52dec-&liba52-version;.tar.gz">
     7  <!ENTITY liba52-download-http
     8  "http://liba52.sourceforge.net/files/a52dec-&liba52-version;.tar.gz">
    89  <!ENTITY liba52-download-ftp  " ">
    910  <!ENTITY liba52-md5sum        "caa9f5bc44232dc8aeea773fea56be80">
     
    3435    in a variety of applications, including digital television and DVD.</para>
    3536
    36     &lfs65_checked;
     37    &lfs70_checked;
    3738
    3839    <bridgehead renderas="sect3">Package Information</bridgehead>
     
    5859    </itemizedlist>
    5960
     61    <bridgehead renderas="sect4">Optional</bridgehead>
     62    <para role="optional"><ulink
     63    url="http://cr.yp.to/djbfft.html">djbfft</ulink></para>
     64
    6065    <para condition="html" role="usernotes">User Notes:
    6166    <ulink url="&blfs-wiki;/liba52"/></para>
    62 
    6367  </sect2>
    6468
     
    6973    following commands:</para>
    7074
    71 <screen><userinput>./configure --prefix=/usr --enable-shared &amp;&amp;
     75<screen><userinput>./configure --prefix=/usr --enable-shared --disable-static \
     76  CFLAGS="-g -O2 $([ $(arch) = x86_64 ] &amp;&amp; echo -fPIC)" &amp;&amp;
    7277make</userinput></screen>
    7378
    7479    <para>To test the results, issue: <command>make check</command>.</para>
    7580
    76     <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
     81    <para>Now, as the <systemitem class="username">root</systemitem>
     82    user:</para>
    7783
    7884<screen role="root"><userinput>make install &amp;&amp;
     85cp liba52/a52_internal.h /usr/include/a52dec &amp;&amp;
    7986install -v -m644 -D doc/liba52.txt \
    8087    /usr/share/doc/liba52-&liba52-version;/liba52.txt</userinput></screen>
     88  </sect2>
    8189
     90  <sect2 role="commands">
     91    <title>Command Explanations</title>
     92
     93    <para><parameter>CFLAGS="-g -O2 ...</parameter>: This sets CFLAGS to -g -O2
     94    (which is the default) but then on x86_64 adds -fPIC. This is needed to
     95    compile <application>liba52</application> on x86_64.</para>
     96
     97    <para><option>--disable-static</option>: This option stops it installing
     98    the static version of the library.</para>
     99
     100    <para><command>cp liba52/a52_internal.h ...</command>: Copying this header
     101    file into /usr/include/a52dec allows some other programs (such as
     102    <application>xine-lib</application>) to compile and link against a system
     103    installed <application>liba52</application>.</para>
    82104  </sect2>
    83105
     
    92114      <seglistitem>
    93115        <seg>a52dec and extract_a52</seg>
    94         <seg>liba52.{so,a}</seg>
    95         <seg>/usr/include/a52dec and /usr/share/doc/liba52-&liba52-version;</seg>
     116        <seg>liba52.so</seg>
     117        <seg>/usr/include/a52dec and
     118        /usr/share/doc/liba52-&liba52-version;</seg>
    96119      </seglistitem>
    97120    </segmentedlist>
     
    123146
    124147      <varlistentry id="liba52-lib">
    125         <term><filename class='libraryfile'>liba52.{so,a}</filename></term>
     148        <term><filename class='libraryfile'>liba52.so</filename></term>
    126149        <listitem>
    127150          <para>provides functions for the programs dealing with
    128151          ATSC A/52 streams.</para>
    129152          <indexterm zone="liba52 liba52-lib">
    130             <primary sortas="c-liba52">liba52.{so,a}</primary>
     153            <primary sortas="c-liba52">liba52.so</primary>
    131154          </indexterm>
    132155        </listitem>
    133156      </varlistentry>
    134 
    135157    </variablelist>
    136 
    137158  </sect2>
    138 
    139159</sect1>
Note: See TracChangeset for help on using the changeset viewer.