This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: DESTDIR vs. libstdc++
Tom Tromey <tromey@redhat.com> writes:
> Note that most GNU-style Makefiles work if you run configure with a
> given --prefix and then change it at `make install' time:
>
> /gcc/configure --prefix=/whatever
> make
> make install prefix=/destdir/whatever
>
> This was common practice in GNU for a long time (this method is also
> supported by automake). I don't recall if it is in the GNU coding
> standards (many things like this are not). I also don't know if this
> is supported by the gcc Makefiles.
However, doing it this way means that if you make additional changes
to exec-prefix or similar, you have to specify those as part of 'make
install' as well---or jump through unpleasant shell/make quoting
hoops.
DESTDIR is nice because it is truly a global prefix which can often
make packaging the resulting product much easier. I much appreciate
packages that have DESTDIR support, it's about a billion times nicer
both when doing packages for Debian and when maintaining Solaris boxes
at my day job.
Mike.