From 3a01ce9f4cb1002a7c7ea7c79eac6d40483110c8 Mon Sep 17 00:00:00 2001 From: Thomas Trepl Date: Sat, 29 Jul 2023 12:33:20 +0200 Subject: [PATCH] Multilib support in libxcrypt --- chapter08/libxcrypt.xml | 62 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/chapter08/libxcrypt.xml b/chapter08/libxcrypt.xml index 3fb59941d..d44ab5ed4 100644 --- a/chapter08/libxcrypt.xml +++ b/chapter08/libxcrypt.xml @@ -115,6 +115,68 @@ cp -av .libs/libcrypt.so.1* /usr/lib + + + + + Installation of Libxcrypt - 32bit + + Clean previous build: + +make distclean + + Prepare File for compilation: + +CC="gcc -m32" \ +./configure --prefix=/usr \ + --host=i686-pc-linux-gnu \ + --libdir=/usr/lib32 \ + --enable-hashes=strong,glibc \ + --enable-obsolete-api=glibc \ + --disable-static \ + --disable-failure-tokens + + Compile the package: + +make + + Install the package: + +cp -av .libs/libcrypt.so.1* /usr/lib32/ + + + + + + + + Installation of Libxcrypt - x32bit + + Clean previous build: + +make distclean + + Prepare File for compilation: + +CC="gcc -mx32" \ +./configure --prefix=/usr \ + --host=x86_64-pc-linux-gnux32 \ + --libdir=/usr/libx32 \ + --enable-hashes=strong,glibc \ + --enable-obsolete-api=glibc \ + --disable-static \ + --disable-failure-tokens + + Compile the package: + +make + + Install the package: + +cp -av .libs/libcrypt.so.1* /usr/libx32/ + + + Contents of Libxcrypt