[lfs] 01/01: Merge kmod: Drop --sbindir=/usr/sbin
| Newsgroups | gmane.linux.lfs.book |
|---|---|
| Message-ID | <[email protected]> |
This is an automated email from the git hooks/post-receive script. git pushed a commit to branch multilib in repository lfs. commit 57845c6be56f9c0c2e264159bd417c90849b32f5 Merge: 34d43b41e 9bad19ff5 Author: Thomas Trepl <[email protected]> AuthorDate: Thu Apr 3 07:28:51 2025 +0200 Merge kmod: Drop --sbindir=/usr/sbin chapter01/whatsnew.xml | 2 +- chapter08/kmod.xml | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --cc chapter08/kmod.xml index 2b6aa9f4c,0041199f5..163c5b333 --- a/chapter08/kmod.xml +++ b/chapter08/kmod.xml @@@ -80,80 -79,6 +79,78 @@@ meson setup --prefix=/usr .. </sect2> + <!-- - - - - - - - - - --> + <!-- Multilib - 32bit --> + <!-- - - - - - - - - - --> + + <sect2 arch="ml_32,ml_all" role="installation"> + <title>Installation of Kmod - 32bit</title> + + <para>Clean previous build:</para> + +<screen><userinput remap="pre">cd .. && +rm -rf build && +mkdir build && +cd build</userinput></screen> + + <para>Prepare Kmod for compilation:</para> + +<screen><userinput remap="configure">PKG_CONFIG_PATH="/usr/lib32/pkgconfig" \ +CC="gcc -m32 -march=i686" \ +CXX="g++ -m32 -march=i686" \ +meson setup --prefix=/usr .. \ - --sbindir=/usr/sbin \ + --buildtype=release \ + --libdir=/usr/lib32 \ + -D manpages=false</userinput></screen> + + <para>Compile the package:</para> + +<screen><userinput remap="make">ninja</userinput></screen> + + <para>Install the package:</para> + +<screen><userinput remap="install">DESTDIR=$PWD/DESTDIR ninja install +cp -Rv DESTDIR/usr/lib32/* /usr/lib32 +rm -rf DESTDIR</userinput></screen> + + </sect2><!-- m32 --> + + <!-- - - - - - - - - - --> + <!-- Multilib - x32bit --> + <!-- - - - - - - - - - --> + + <sect2 arch="ml_x32,ml_all" role="installation"> + <title>Installation of Kmod - x32bit</title> + + <para>Clean previous build:</para> + +<screen><userinput remap="pre">cd .. && +rm -rf build && +mkdir build && +cd build</userinput></screen> + + <para>Prepare Kmod for compilation:</para> + +<screen><userinput remap="configure">PKG_CONFIG_PATH="/usr/libx32/pkgconfig" \ +CC="gcc -mx32" \ +CXX="g++ -mx32" \ +meson setup --prefix=/usr .. \ - --sbindir=/usr/sbin \ + --buildtype=release \ + --libdir=/usr/libx32 \ + -D manpages=false</userinput></screen> + + <para>Compile the package:</para> + +<screen><userinput remap="make">ninja</userinput></screen> + + <para>Install the package:</para> + +<screen><userinput remap="install">DESTDIR=$PWD/DESTDIR ninja install +cp -Rv DESTDIR/usr/libx32/* /usr/libx32 +rm -rf DESTDIR</userinput></screen> + + </sect2><!-- mx32 --> + <sect2 id="contents-kmod" role="content"> <title>Contents of Kmod</title> -- To stop receiving notification emails like this one, please contact the administrator of this repository. -- http://lists.linuxfromscratch.org/sympa/info/lfs-book Unsubscribe: See the above information page