Use of the __GMP_CC and __GMP_CFLAGS macros

Vincent Lefevre vincent at
Thu Oct 4 13:20:57 CEST 2012

On 2012-10-03 22:03:12 -0500, Steve M. Robbins wrote:
> Dear Torbjorn: if you had followed the discussion, you would see
> that Debian is not adding complication.  Debian is building the
> packages exactly according to the gmp process.

Not exactly. First, Debian does not use the default CC and CFLAGS
chosen by GMP (for a good reason I suppose, as it must at least
make sure that the chosen ABI for GMP is the same as the target
ABI). In the debian/rules file:

export CFLAGS = -Wall -g 

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
  CFLAGS += -O0
  ifneq (,$(findstring $(DEB_HOST_ARCH), ia64))
    CFLAGS += -O2
    CFLAGS += -O3


Then, the GMP build/install process is something like:
  make check
  make install

Copying gmp.h to another platform is not part of its process.

Vincent Lefèvre <vincent at> - Web: <>
100% accessible validated (X)HTML - Blog: <>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

More information about the gmp-discuss mailing list