This is the mail archive of the gcc-help@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: MPFR lib path missing from compile command(s) during configuration?


Eric Lemings wrote:

> Ah yes.  For some reason, I was thinking the
> --with-mpfr=<mpfr-install-dir>
> option would take care of that.

But that is not something that gcc has knowledge of -- it varies from
system to system and is part of the policy that the system administrator
controls.  For example, maybe the sysadmin adds directories to
ld.so.conf, maybe they require all client apps to be linked with an
-rpath, maybe they require wrapper scripts that set LD_LIBRARY_PATH,
maybe they require that mpfr/gmp be built static, etc.  gcc cannot
assume knowledge of how the system is administered.

And besides this is a requirement of just one kind of system, namely
ELF-style shared libraries; but gcc runs on dozens and dozens of various
plaforms and shared libraries work differently on each one, so on some
of them setting LD_LIBRARY_PATH is unnecessary or meaningless.  In
summary, this is site-specific configuration information that must be
handled by the person that installed the library, not the user of the
library (gcc.)

Brian


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