On Sep  7, 2000, Russ Allbery <[EMAIL PROTECTED]> wrote:

> No, $(prefix) specifies the root of the package for whatever step you're
> performing.  --prefix as an argument to configure says to configure the
> package with that root, $(prefix) in make says to build the package with
> that root (and you should generally always configure and build with the
> same root), and $(prefix) in make install says to install the package with
> that root, which doesn't have to match the root it was built with provided
> that this will be taken care of later (by, e.g., volume releases or
> automatic linking tools like many of us use).

Unfortunately, it's not that simple, in general.  For example,
thinking of libtool, on some platforms, shared libraries and programs
that depend on them have to be re-linked at install time to have the
proper run-time library search paths encoded in them.  As soon as you
specify a different prefix, you lose, because either libraries and
executables will get the install-time path encoded in them, or
re-linking will fail because the libraries you want to be linking with
can't be found in the run-time path yet (or you may get them linked
with already-installed older versions of them).

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

Reply via email to