moving gcc from the installation path: is it allowed?

Maurizio Vitale mav@cuma.polymath-solutions.lan
Tue Feb 3 22:16:00 GMT 2009


I cannot find an answer in the documentation.

The scenario is a GCC compiled with configure --prefix=SOMEWHERE
and then the entire tree installed by make install in
SOMEWHERE is copied to SOMEWHERE_ELSE.

This is what happens when packaging a binary distribution (say rpm) and
need the en user to be able to install in a directory he has enough
rights to.

Running the compiled gcc with -print-search-dirs shows that programs and
libraries are searched relative to the gcc binary.

Is this allowed? Note that is different (in a sense complementary) to
the staged installation mentioned in the docs (using DESTDIR)

Best regards,

     Maurizio




More information about the Gcc-help mailing list