Difference between revisions of "GMP"

From CBLFS
Jump to navigationJump to search
Line 18: Line 18:
  
 
  ./configure --prefix=/usr --enable-cxx \
 
  ./configure --prefix=/usr --enable-cxx \
     --enable-nails --enable-mpbsd &&
+
     --enable-mpbsd &&
 
  make
 
  make
  
Line 33: Line 33:
 
  CC="gcc ${BUILD32}" ./configure --prefix=/usr \
 
  CC="gcc ${BUILD32}" ./configure --prefix=/usr \
 
     --host=${CLFS_TARGET32} --enable-cxx \
 
     --host=${CLFS_TARGET32} --enable-cxx \
     --enable-nails --enable-mpbsd &&
+
     --enable-mpbsd &&
 
  make
 
  make
  
Line 46: Line 46:
 
  CC="gcc ${BUILDN32}" ./configure --prefix=/usr \
 
  CC="gcc ${BUILDN32}" ./configure --prefix=/usr \
 
     --libdir=/usr/lib32 --enable-cxx \
 
     --libdir=/usr/lib32 --enable-cxx \
     --enable-nails --enable-mpbsd &&
+
     --enable-mpbsd &&
 
  make
 
  make
  
Line 59: Line 59:
 
  CC="gcc ${BUILD64}" ./configure --prefix=/usr \
 
  CC="gcc ${BUILD64}" ./configure --prefix=/usr \
 
     --libdir=/usr/lib64 --enable-cxx \
 
     --libdir=/usr/lib64 --enable-cxx \
     --enable-nails --enable-mpbsd &&
+
     --enable-mpbsd &&
 
  make
 
  make
  

Revision as of 08:21, 26 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 --enable-cxx \
    --enable-mpbsd &&
make

Install the package

make install

Multilib

32Bit

Compile the package:

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

Install the package

make install

N32

Compile the package:

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

Install the package

make install

64Bit

Compile the package:

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

Install the package

make install
Retrieved from "?title=GMP&oldid=6338"