This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] Configure support for GMP
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Paul Brook <paul at nowt dot org>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, gcc-g95 List <gcc-g95-devel at lists dot sourceforge dot net>
- Date: 01 Aug 2003 02:54:41 -0300
- Subject: Re: [tree-ssa] Configure support for GMP
- Organization: GCC Team, Red Hat
- References: <200307312110.41787.paul@nowt.org><Pine.LNX.4.56.0307312140420.20520@kern.srcf.societies.cam.ac.uk><200308010031.57818.paul@nowt.org>
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