cross compiling gmp

Torbjorn Granlund tg at gmplib.org
Mon Jan 16 08:40:08 CET 2012


Mike Mohr <akihana at gmail.com> writes:

  I've been using GMP on Android for a while, but have never been able
  to run the test suite on the final shared object.  Obviously, in any
  cross compiler setting, you cannot run the generated code on the host
  machine.  The problem (for me) is that there doesn't appear to be a
  way to just compile and package the test suite.  Ideally, there should
  be a way to transfer a fully-built test suite to the target (embedded)
  system and run it there.  Has anyone solved this problem with GMP in
  the past, and if so, how?  There appear to be multiple scripts that
  control the individual test programs, which are themselves called from
  the Makefile somehow.  I'm not sure how this can all be separated out.
  
I am not aware of any specific mechanism for cross-compilation.

(Building the tests without running them is easy; just do "make TESTS=
check".)

-- 
Torbjörn


More information about the gmp-discuss mailing list