This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
moving gcc from the installation path: is it allowed?
- From: Maurizio Vitale <mav at cuma dot polymath-solutions dot lan>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 03 Feb 2009 17:06:27 -0500
- Subject: moving gcc from the installation path: is it allowed?
- Reply-to: maurizio dot vitale at polymath-solutions dot com
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