GMP: Difference between revisions

From CBLFS
Jump to navigationJump to search
Kalessin (talk | contribs)
I added the package description from BLFS.
mNo edit summary
Line 19: Line 19:
  ./configure --prefix=/usr &&
  ./configure --prefix=/usr &&
  make
  make
Pass --enable-cxx to configure for C++ support.


Install the package
Install the package
Line 32: Line 34:
  CC="gcc ${BUILD32}" ./configure --prefix=/usr --host=${CLFS_TARGET32} &&
  CC="gcc ${BUILD32}" ./configure --prefix=/usr --host=${CLFS_TARGET32} &&
  make
  make
Pass --enable-cxx to configure for C++ support.


Install the package
Install the package
Line 43: Line 47:
  CC="gcc ${BUILDN32}" ./configure --prefix=/usr --libdir=/usr/lib32 &&
  CC="gcc ${BUILDN32}" ./configure --prefix=/usr --libdir=/usr/lib32 &&
  make
  make
Pass --enable-cxx to configure for C++ support.


Install the package
Install the package
Line 54: Line 60:
  CC="gcc ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 &&
  CC="gcc ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 &&
  make
  make
Pass --enable-cxx to configure for C++ support.


Install the package
Install the package


  make install
  make install

Revision as of 19:46, 4 December 2006

Download Source: ftp://ftp.gnu.org/gnu/gmp/gmp-4.2.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
Retrieved from "?title=GMP&oldid=4345"