This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa] Configure support for GMP


On Jul 31, 2003, Paul Brook <paul@nowt.org> wrote:

> 	* Makefile.in (GMPINC): Set and use.
> 	(GMPLIBS): Set it.
> 	* configure.in: Add test and switches for the GMP library.
> 	(al_need_gmp): Set from config-lang.in.
> 	* fortran/Make-lang.in: Use GMPLIBS.
> 	* fortran/config-lang.in: Set need_gmp.
> 	* sourcebuild.texi: Document need_gmp.

This is ok, thanks.  However, I'd appreciate if you'd make a small
change to it:

> +    gmplibs="$with_gmp_dir/.libs/libgmp.a"

There's no guarantee that libtool will use .libs as the directory name
for libgmp.a.  It may be _libs as well, on filesystems that don't
support filenames started with a dot, so please test for both.  It
might be also be that libgmp.a is not created, in case gmp is
configured with --disable-static.  In this case, you should probably
error out or something, unless you can tolerate a shared-only libgmp.
Maybe you should then use `-L$with_gmp_dir/[._]libs -lgmp'?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]