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: PING x2: [PATCH take 2]: Integrate GCC with the complex math library MPC (configury)


Kaveh R. Ghazi wrote:
> From: "DJ Delorie" <dj@redhat.com>
> 
>>> I've CC:ed the build maintainers.  Would one of you please take a look?
>>>
>>> PING x2: http://gcc.gnu.org/ml/gcc-patches/2009-05/msg00908.html
>>
>> Looks OK to me.  Please update gcc and src if you can.
> 
> Thanks!  Installed.  Sorry I do not have write access to src.

Is it on purpose that the configure script does not find MPC if it is
installed but none of the -with*mpc* option has been used?

One finds:
# Check for GMP, MPFR and MPC
gmplibs="-lmpfr -lgmp"
mpclibs=
mpcinc=
have_mpc=no

...
if test "x$with_mpc" != x; then
  mpclibs="-L$with_mpc/lib -lmpc"
if test "x$with_mpc_lib" != x; then
  mpclibs="-L$with_mpc_lib -lmpc"
if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d
${srcdir}/mpc; then
  mpclibs='-L$$r/$(HOST_SUBDIR)/mpc/src/.libs
-L$$r/$(HOST_SUBDIR)/mpc/src/_libs -lmpc'

Thus "-lmpc" is set if either --with-mpc= or --with-mpc-lib= has been
given or whether it is installed in source. But it is not found if it is
in the default path (e.g. /usr/lib/libmpc.so*).

I don't think that's the intention.

Tobias,
who found this, when he tried to figure out why MPC was not linked
although he has the MPC rpms installed.


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