Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/libffi.xml

    r9831431 r7152faa  
    1 <?xml version="1.0" encoding="ISO-8859-1"?>
     1<?xml version="1.0" encoding="UTF-8"?>
    22<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
    33  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
     
    9797  </sect2>
    9898
    99   <!-- - - - - - - - - - -->
    100   <!-- Multilib - 32bit  -->
    101   <!-- - - - - - - - - - -->
    102  
    103   <sect2 arch="ml_32,ml_all" role="installation">
    104     <title>Installation of Libffi - 32bit</title>
    105 
    106     <para>Clean previous build:</para>
    107 
    108 <screen><userinput remap="pre">make distclean</userinput></screen>
    109 
    110     <para>Prepare Libffi for compilation:</para>
    111 
    112 <screen><userinput remap="configure">CC="gcc -m32" CXX="g++ -m32" ./configure \
    113     --host=i686-pc-linux-gnu \
    114     --prefix=/usr            \
    115     --libdir=/usr/lib32      \
    116     --disable-static         \
    117     --with-gcc-arch=i686</userinput></screen>
    118 
    119     <para>Compile the package:</para>
    120 
    121 <screen><userinput remap="make">make</userinput></screen>
    122 
    123     <para>To test the results, issue:</para>
    124 
    125 <screen><userinput remap="test">make check</userinput></screen>
    126 
    127     <para>Install the package:</para>
    128 
    129 <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
    130 cp -Rv DESTDIR/usr/lib32/* /usr/lib32
    131 rm -rf DESTDIR</userinput></screen>
    132 
    133   </sect2><!-- m32 -->
    134 
    135   <!-- - - - - - - - - - -->
    136   <!-- Multilib - x32bit -->
    137   <!-- - - - - - - - - - -->
    138  
    139   <sect2 arch="ml_x32,ml_all" role="installation">
    140     <title>Installation of Libffi - x32bit</title>
    141 
    142     <para>Clean previous build:</para>
    143 
    144 <screen><userinput remap="pre">make distclean</userinput></screen>
    145 
    146     <para>Prepare Libffi for compilation:</para>
    147 
    148 <screen><userinput remap="configure">CC="gcc -mx32" CXX="g++ -mx32" ./configure \
    149     --host=x86_64-unknown-linux-gnux32 \
    150     --prefix=/usr            \
    151     --libdir=/usr/libx32     \
    152     --disable-static         \
    153     --with-gcc-arch=x86_64</userinput></screen>
    154 
    155     <para>Compile the package:</para>
    156 
    157 <screen><userinput remap="make">make</userinput></screen>
    158 
    159     <para>To test the results, issue:</para>
    160 
    161 <screen><userinput remap="test">make check</userinput></screen>
    162 
    163     <para>Install the package:</para>
    164 
    165 <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
    166 cp -Rv DESTDIR/usr/libx32/* /usr/libx32
    167 rm -rf DESTDIR</userinput></screen>
    168 
    169   </sect2><!-- mx32 -->
    170 
    17199  <sect2 id="contents-libffi" role="content">
    172100    <title>Contents of Libffi</title>
     
    199127
    200128</sect1>
     129
Note: See TracChangeset for help on using the changeset viewer.