This is the mail archive of the gcc@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: Build using --with-gmp and shared libraries


On Fri, Nov 04, 2005 at 01:32:06PM +0100, Fran?ois-Xavier Coudert wrote:
> >> Here is a patch to fix PR libfortran/21547: when building with
> >> --with-gmp=/foo/bar and a shared libgmp in /foo/bar, the
> >> $(RPATH_ENVVAR) variable (usually LD_LIBRARY_PATH) is not set
> >> correctly when using the freshly built gfortran to build libgfortran.
> >> The same thing happens for the gfortran testsuite, and the fix is also
> >> included in this patch.
> >
> > Why wouldn't mpfr have the same problem?
> 
> Sorry not to mention that. It can (although it usually doesn't,
> because the default for libmpfr is to build only a static library),
> and this is fix by the same patch. In fact, in the gcc configury, all
> occurences of GMPLIBS, GMPINCS always take care of both gmp and mpfr.
> I followed this lead, and GMPLIBSDIR points to the directories where
> gmp and mpfr are installed, if different. All this is done in the
> toplevel configure.
> 

The newest version of mpfr will build a shared library.
In fact, we should move to using the newest version,
but I think some/many people would object to having two 
external library dependencies.

-- 
Steve


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