Ignore:
Timestamp:
Jun 20, 2014, 10:06:44 PM (10 years ago)
Author:
Chris Staub <chris@…>
Branches:
clfs-3.0.0-systemd, master, systemd
Children:
e1424ca
Parents:
37dd4bd
Message:

Updated gmp doc install instructions

Location:
BOOK/final-system/multilib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • BOOK/final-system/multilib/gmp-64bit.xml

    r37dd4bd r4c68291  
    4444LDFLAGS="-Wl,-rpath-link,/usr/lib64:/lib64 ${BUILD64}" \
    4545  ./configure --prefix=/usr \
    46     --libdir=/usr/lib64 --enable-cxx</userinput></screen>
     46    --libdir=/usr/lib64 --enable-cxx \
     47    --docdir=/usr/share/doc/gmp-&gmp-version;</userinput></screen>
    4748
    4849    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     
    8283    xpointer="xpointer(//*[@os='k'])"/>
    8384
    84     <para os="j">Create the 64bit header file:</para>
     85    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     86    href="../common/gmp.xml"
     87    xpointer="xpointer(//*[@os='l'])"/>
    8588
    86 <screen os="k"><userinput>mv -v /usr/include/gmp{,-64}.h</userinput></screen>
     89    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     90    href="../common/gmp.xml"
     91    xpointer="xpointer(//*[@os='m'])"/>
    8792
    88     <para os="l">Finally, create a stub header in the place of the originals:</para>
     93    <para os="n">Create the 64bit header file:</para>
    8994
    90 <screen os="m"><userinput>cat &gt; /usr/include/gmp.h &lt;&lt; "EOF"
     95<screen os="o"><userinput>mv -v /usr/include/gmp{,-64}.h</userinput></screen>
     96
     97    <para os="p">Finally, create a stub header in the place of the originals:</para>
     98
     99<screen os="q"><userinput>cat &gt; /usr/include/gmp.h &lt;&lt; "EOF"
    91100/* gmp.h - Stub Header  */
    92101#ifndef __STUB__GMP_H__
  • BOOK/final-system/multilib/gmp-n32.xml

    r37dd4bd r4c68291  
    5858    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    5959    href="../common/gmp.xml"
    60     xpointer="xpointer(//*[@os='e'])"/>
    61 
    62     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    63     href="../common/gmp.xml"
    64     xpointer="xpointer(//*[@os='f'])"/>
    65 
    66     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    67     href="../common/gmp.xml"
    6860    xpointer="xpointer(//*[@os='g'])"/>
    6961
     
    7668    xpointer="xpointer(//*[@os='i'])"/>
    7769
    78     <para os="j">Create the N32 header file:</para>
     70    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     71    href="../common/gmp.xml"
     72    xpointer="xpointer(//*[@os='j'])"/>
    7973
    80 <screen os="k"><userinput>mv -v /usr/include/gmp{,-n32}.h</userinput></screen>
     74    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     75    href="../common/gmp.xml"
     76    xpointer="xpointer(//*[@os='k'])"/>
     77
     78    <para os="l">Create the N32 header file:</para>
     79
     80<screen os="m"><userinput>mv -v /usr/include/gmp{,-n32}.h</userinput></screen>
    8181
    8282  </sect2>
  • BOOK/final-system/multilib/gmp.xml

    r37dd4bd r4c68291  
    5656    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    5757    href="../common/gmp.xml"
    58     xpointer="xpointer(//*[@os='e'])"/>
    59 
    60     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    61     href="../common/gmp.xml"
    62     xpointer="xpointer(//*[@os='f'])"/>
    63 
    64     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    65     href="../common/gmp.xml"
    6658    xpointer="xpointer(//*[@os='g'])"/>
    6759
     
    7466    xpointer="xpointer(//*[@os='i'])"/>
    7567
    76     <para os="j">The header installed by GMP is architecture specific. Programs compiled as 32bit will require the header provided by the 32bit installation of GMP. The same applies for 64bit programs. Move the header so a wrapper can be put in its place later:</para>
     68    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     69    href="../common/gmp.xml"
     70    xpointer="xpointer(//*[@os='j'])"/>
    7771
    78 <screen os="k"><userinput>mv -v /usr/include/gmp{,-32}.h</userinput></screen>
     72    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     73    href="../common/gmp.xml"
     74    xpointer="xpointer(//*[@os='k'])"/>
     75
     76    <para os="l">The header installed by GMP is architecture specific. Programs compiled as 32bit will require the header provided by the 32bit installation of GMP. The same applies for 64bit programs. Move the header so a wrapper can be put in its place later:</para>
     77
     78<screen os="m"><userinput>mv -v /usr/include/gmp{,-32}.h</userinput></screen>
    7979
    8080  </sect2>
Note: See TracChangeset for help on using the changeset viewer.