How to compile GMP from source?

Vincent Lefevre vincent at vinc17.net
Tue May 29 15:35:44 CEST 2012


On 2012-05-29 15:18:54 +0200, Torbjorn Granlund wrote:
> Markus Heiler <shevegen at gmail.com> writes:
> 
>   -m32 in CFLAGS. GMP compiled now.
>   
> Overriding the various settings using environment variables is almost
> always a bad idea.  Its assumption is that the values make sense, and it
> will not override them.

This depends on the settings. But of course, whatever the method used,
this should be done in the right way (setting ABI=32 and CFLAGS="" is
non-sense if the default ABI is 64-bit). A good example is when the
user installs software under his home directory (~/bin, ~/lib, etc.),
and wants to use them by default, the best solution is to use
environment variables like LIBRARY_PATH and CPATH instead of providing
-L and -I options at each invocation; another advantage is that the
search path order will always be the same, while it is too easy to
swap two options like -L (in case this has an importance).

-- 
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