Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/udev.xml

    rf24a041 rdf9c52e  
    160160  </sect2>
    161161
     162  <!-- - - - - - - - - - -->
     163  <!-- Multilib - 32bit  -->
     164  <!-- - - - - - - - - - -->
     165  <sect2 arch="ml_32,ml_all" role="installation">
     166    <title>Installation of Udev - 32bit</title>
     167
     168    <para>Clean previous build (while still in the build directory):</para>
     169
     170<screen><userinput remap="pre">rm -rf *</userinput></screen>
     171
     172    <para>Prepare File for compilation:</para>
     173
     174<screen><userinput remap="configure">PKG_CONFIG_PATH="/usr/lib32/pkgconfig" \
     175CC="gcc -m32 -march=i686"              \
     176CXX="g++ -m32 -march=i686"             \
     177LANG=en_US.UTF-8                       \
     178meson setup \
     179      --prefix=/usr                 \
     180      --buildtype=release           \
     181      -Dmode=release                \
     182      -Ddev-kvm-mode=0660           \
     183      -Dlink-udev-shared=false      \
     184      ..</userinput></screen>
     185
     186    <para>Compile the package:</para>
     187
     188<screen><userinput remap="make">ninja \
     189      $(grep -o -E "^build (src/libudev|src/udev)[^:]*" \
     190        build.ninja | awk '{ print $2 }')                              \
     191      $(realpath libudev.so --relative-to .)</userinput></screen>
     192
     193    <para>Install the package:</para>
     194
     195<screen><userinput remap="install">mkdir -pv /usr/lib32/pkgconfig &amp;&amp;
     196cp -av libudev.so{,*[0-9]} /usr/lib32/ &amp;&amp;
     197sed -e "s;/usr/lib;&amp;32;g" src/libudev/libudev.pc > /usr/lib32/pkgconfig/libudev.pc</userinput></screen>
     198
     199  </sect2><!-- m32 -->
     200
     201  <!-- - - - - - - - - - -->
     202  <!-- Multilib - x32bit -->
     203  <!-- - - - - - - - - - -->
     204  <sect2 arch="ml_x32,ml_all" role="installation">
     205    <title>Installation of Udev - x32bit</title>
     206    <para>Clean previous build (while still in the build directory):</para>
     207
     208<screen><userinput remap="pre">rm -rf *</userinput></screen>
     209
     210    <para>Prepare File for compilation:</para>
     211
     212<screen><userinput remap="configure">PKG_CONFIG_PATH="/usr/libx32/pkgconfig" \
     213CC="gcc -mx32"                          \
     214CXX="g++ -mx32"                         \
     215CFLAGS+=" -Wno-error=shift-overflow"    \
     216CXXFLAGS+=" -Wno-error=shift-overflow"  \
     217LANG=en_US.UTF-8                        \
     218meson setup \
     219      --prefix=/usr                 \
     220      --buildtype=release           \
     221      -Dmode=release                \
     222      -Ddev-kvm-mode=0660           \
     223      -Dlink-udev-shared=false      \
     224      ..</userinput></screen>
     225
     226    <para>Compile the package:</para>
     227
     228<screen><userinput remap="make">ninja \
     229      $(grep -o -E "^build (src/libudev|src/udev)[^:]*" \
     230        build.ninja | awk '{ print $2 }')                              \
     231      $(realpath libudev.so --relative-to .)</userinput></screen>
     232
     233    <para>Install the package:</para>
     234
     235<screen><userinput remap="install">mkdir -pv /usr/libx32/pkgconfig &amp;&amp;
     236cp -av libudev.so{,*[0-9]} /usr/libx32/ &amp;&amp;
     237sed -e "s;/usr/lib;&amp;x32;g" src/libudev/libudev.pc > /usr/libx32/pkgconfig/libudev.pc</userinput></screen>
     238
     239  </sect2><!-- mx32 -->
     240 
    162241  <sect2 id="conf-udev" role="configuration">
    163242    <title>Configuring Udev</title>
Note: See TracChangeset for help on using the changeset viewer.