GMP: Difference between revisions

From CBLFS
Jump to navigationJump to search
No edit summary
No edit summary
Line 17: Line 17:
Compile the package:
Compile the package:


  ./configure --prefix=/usr &&
  ./configure --prefix=/usr --enable-cxx \
    --enable-nails --enable-mpbsd &&
  make
  make
Pass --enable-cxx to configure for C++ support.


Install the package
Install the package
Line 32: Line 31:
Compile the package:
Compile the package:


  CC="gcc ${BUILD32}" ./configure --prefix=/usr --host=${CLFS_TARGET32} &&
  CC="gcc ${BUILD32}" ./configure --prefix=/usr \
    --host=${CLFS_TARGET32} --enable-cxx \
    --enable-nails --enable-mpbsd &&
  make
  make
Pass --enable-cxx to configure for C++ support.


Install the package
Install the package
Line 45: Line 44:
Compile the package:
Compile the package:


  CC="gcc ${BUILDN32}" ./configure --prefix=/usr --libdir=/usr/lib32 &&
  CC="gcc ${BUILDN32}" ./configure --prefix=/usr \
    --libdir=/usr/lib32 --enable-cxx \
    --enable-nails --enable-mpbsd &&
  make
  make
Pass --enable-cxx to configure for C++ support.


Install the package
Install the package
Line 58: Line 57:
Compile the package:
Compile the package:


  CC="gcc ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 &&
  CC="gcc ${BUILD64}" ./configure --prefix=/usr \
    --libdir=/usr/lib64 --enable-cxx \
    --enable-nails --enable-mpbsd &&
  make
  make
Pass --enable-cxx to configure for C++ support.


Install the package
Install the package


  make install
  make install

Revision as of 07:53, 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-nails --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-nails --enable-mpbsd &&
make

Install the package

make install

N32

Compile the package:

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

Install the package

make install

64Bit

Compile the package:

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

Install the package

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