Use of the __GMP_CC and __GMP_CFLAGS macros

Vincent Lefevre vincent at vinc17.net
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
else
  ifneq (,$(findstring $(DEB_HOST_ARCH), ia64))
    CFLAGS += -O2
  else
    CFLAGS += -O3
  endif
endif

CC   = $(DEB_HOST_GNU_TYPE)-gcc

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

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

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


More information about the gmp-discuss mailing list