Difference between revisions of "GMP"

From CBLFS
Jump to navigationJump to search
m
Line 2: Line 2:
 
|-
 
|-
 
!Download Source:
 
!Download Source:
| ftp://ftp.gnu.org/gnu/gmp/gmp-4.2.1.tar.bz2
+
| ftp://ftp.gnu.org/gnu/gmp/gmp-{{GMP-Version}}.tar.bz2
 
|}
 
|}
  

Revision as of 15:31, 17 December 2006

Download Source: ftp://ftp.gnu.org/gnu/gmp/gmp-4.3.1.tar.bz2

Introduction to GMP

The GMP package contains math libraries. These have useful functions for arbitrary precision arithmetic.

Dependencies

Non-Multilib

Compile the package:

./configure --prefix=/usr &&
make

Pass --enable-cxx to configure for C++ support.

Install the package

make install

Multilib

32Bit

Compile the package:

CC="gcc ${BUILD32}" ./configure --prefix=/usr --host=${CLFS_TARGET32} &&
make

Pass --enable-cxx to configure for C++ support.

Install the package

make install

N32

Compile the package:

CC="gcc ${BUILDN32}" ./configure --prefix=/usr --libdir=/usr/lib32 &&
make

Pass --enable-cxx to configure for C++ support.

Install the package

make install

64Bit

Compile the package:

CC="gcc ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 &&
make

Pass --enable-cxx to configure for C++ support.

Install the package

make install