Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/kmod.xml

    rd7a9421 r0ebda11  
    8383
    8484  </sect2>
     85
     86  <!-- - - - - - - - - - -->
     87  <!-- Multilib - 32bit  -->
     88  <!-- - - - - - - - - - -->
     89 
     90  <sect2 arch="ml_32,ml_all" role="installation">
     91    <title>Installation of Kmod - 32bit</title>
     92
     93    <para>Clean previous build but keep man pages as they cannot
     94    be recreated since xsltproc isn't installed yet:</para>
     95
     96<screen><userinput remap="pre">sed -e "s/^CLEANFILES =.*/CLEANFILES =/" -i man/Makefile
     97make clean</userinput></screen>
     98
     99    <para>Prepare Kmod for compilation:</para>
     100
     101<screen><userinput remap="configure">CC="gcc -m32" ./configure \
     102    --prefix=/usr                 \
     103    --bindir=/bin                 \
     104    --libdir=/usr/lib32          \
     105    --sysconfdir=/etc             \
     106    --with-xz                     \
     107    --with-zlib                   \
     108    --host=i686-pc-linux-gnu      \
     109    --with-rootlibdir=/usr/lib32</userinput></screen>
     110
     111    <para>Compile the package:</para>
     112
     113<screen><userinput remap="make">make</userinput></screen>
     114
     115    <para>Install the package:</para>
     116
     117<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
     118cp -Rv DESTDIR/usr/lib32/* /usr/lib32
     119rm -rf DESTDIR</userinput></screen>
     120
     121  </sect2><!-- m32 -->
     122
     123  <!-- - - - - - - - - - -->
     124  <!-- Multilib - x32bit -->
     125  <!-- - - - - - - - - - -->
     126 
     127  <sect2 arch="ml_x32,ml_all" role="installation">
     128    <title>Installation of Kmod - x32bit</title>
     129
     130    <para>Clean previous build but keep man pages as they cannot
     131    be recreated since xsltproc isn't installed yet:</para>
     132
     133<screen><userinput remap="pre">sed -e "s/^CLEANFILES =.*/CLEANFILES =/" -i man/Makefile
     134make clean</userinput></screen>
     135
     136    <para>Prepare Kmod for compilation:</para>
     137
     138<screen><userinput remap="configure">CC="gcc -mx32" ./configure \
     139    --prefix=/usr                 \
     140    --bindir=/bin                 \
     141    --libdir=/usr/libx32          \
     142    --sysconfdir=/etc             \
     143    --with-xz                     \
     144    --with-zlib                   \
     145    --host=x86_64-pc-linux-gnux32 \
     146    --with-rootlibdir=/usr/libx32</userinput></screen>
     147
     148    <para>Compile the package:</para>
     149
     150<screen><userinput remap="make">make</userinput></screen>
     151
     152    <para>Install the package:</para>
     153
     154<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
     155cp -Rv DESTDIR/usr/libx32/* /usr/libx32
     156rm -rf DESTDIR</userinput></screen>
     157
     158  </sect2><!-- mx32 -->
    85159
    86160  <sect2 id="contents-kmod" role="content">
Note: See TracChangeset for help on using the changeset viewer.