Difference between revisions of "Libmcrypt"
From CBLFS
Jump to navigationJump to search (libmcrypt.a & delete useless directory) |
|||
Line 17: | Line 17: | ||
Compile the package: | Compile the package: | ||
− | ./configure --prefix=/usr && | + | ./configure --prefix=/usr --enable-static && |
make | make | ||
Install the package: | Install the package: | ||
− | make install | + | make install && |
+ | rmdir /usr/lib/libmcrypt | ||
== Multilib == | == Multilib == | ||
Line 30: | Line 31: | ||
Compile the package: | Compile the package: | ||
− | CC="gcc ${BUILD32}" ./configure --prefix=/usr && | + | CC="gcc ${BUILD32}" ./configure --prefix=/usr --enable-static && |
make | make | ||
Line 36: | Line 37: | ||
make install && | make install && | ||
+ | rmdir /usr/lib/libmcrypt && | ||
mv -v /usr/bin/libmcrypt-config{,-32} | mv -v /usr/bin/libmcrypt-config{,-32} | ||
Line 43: | Line 45: | ||
CC="gcc ${BUILDN32}" ./configure --prefix=/usr \ | CC="gcc ${BUILDN32}" ./configure --prefix=/usr \ | ||
− | --libdir=/usr/lib32 && | + | --libdir=/usr/lib32 --enable-static && |
make | make | ||
Line 49: | Line 51: | ||
make install && | make install && | ||
+ | rmdir /usr/lib32/libmcrypt && | ||
mv -v /usr/bin/libmcrypt-config{,-n32} | mv -v /usr/bin/libmcrypt-config{,-n32} | ||
Line 56: | Line 59: | ||
CC="gcc ${BUILD64}" ./configure --prefix=/usr \ | CC="gcc ${BUILD64}" ./configure --prefix=/usr \ | ||
− | --libdir=/usr/lib64 && | + | --libdir=/usr/lib64 --enable-static && |
make | make | ||
Line 62: | Line 65: | ||
make install && | make install && | ||
+ | rmdir /usr/lib64/libmcrypt && | ||
mv -v /usr/bin/libmcrypt-config{,-64} && | mv -v /usr/bin/libmcrypt-config{,-64} && | ||
ln -sfv multiarch_wrapper /usr/bin/libmcrypt-config | ln -sfv multiarch_wrapper /usr/bin/libmcrypt-config | ||
+ | |||
+ | == Configuration Information == | ||
+ | |||
+ | {| | ||
+ | |- | ||
+ | |''--enable-static:'' This is required to build the static library '''libmcrypt.a'''. | ||
+ | |} | ||
+ | |||
+ | == Command Explanations == | ||
+ | |||
+ | '''rmdir /usr/lib*/libmcrypt''': This command removes an empty directory which is created during installation. | ||
== Contents == | == Contents == |
Latest revision as of 13:52, 14 November 2011
Download Source: | http://downloads.sourceforge.net/mcrypt/libmcrypt-2.5.8.tar.bz2 |
---|
Contents
Introduction to Libmcrypt
Libmcrypt is a library which provides a uniform interface to several symmetric encryption algorithms. It is intended to have a simple interface to access encryption algorithms in ofb, cbc, cfb, and ecb modes.
Project Homepage: http://mcrypt.sourceforge.net/
Dependencies
Non-Multilib
Compile the package:
./configure --prefix=/usr --enable-static && make
Install the package:
make install && rmdir /usr/lib/libmcrypt
Multilib
32Bit
Compile the package:
CC="gcc ${BUILD32}" ./configure --prefix=/usr --enable-static && make
Install the package:
make install && rmdir /usr/lib/libmcrypt && mv -v /usr/bin/libmcrypt-config{,-32}
N32
Compile the package:
CC="gcc ${BUILDN32}" ./configure --prefix=/usr \ --libdir=/usr/lib32 --enable-static && make
Install the package:
make install && rmdir /usr/lib32/libmcrypt && mv -v /usr/bin/libmcrypt-config{,-n32}
64Bit
Compile the package:
CC="gcc ${BUILD64}" ./configure --prefix=/usr \ --libdir=/usr/lib64 --enable-static && make
Install the package:
make install && rmdir /usr/lib64/libmcrypt && mv -v /usr/bin/libmcrypt-config{,-64} && ln -sfv multiarch_wrapper /usr/bin/libmcrypt-config
Configuration Information
--enable-static: This is required to build the static library libmcrypt.a. |
Command Explanations
rmdir /usr/lib*/libmcrypt: This command removes an empty directory which is created during installation.
Contents
Installed Directories: | /usr/include/mutils |
---|---|
Installed Programs: | libmcrypt-config |
Installed Libraries: | libmcrypt.{a,la,so} |