About prefix on linux
H.J. Lu
hjl@lucon.org
Fri Sep 12 08:15:00 GMT 1997
>
> hjl@lucon.org (H.J. Lu) writes:
>
> > 2. Nothing is overridden. You can always get back your old compiler
> > by
> >
> > # gcc -V version -b xxxx
>
> This doesn't work if your old compiler supports ada and/or pascal because
# cd /usr/bin
# ls gcc* egcs*
egcs-970814 gcc-2.7.2.3 gcc-970125 gcc-970502 gcc-970706
egcs-970821 gcc-2.7.2.l.3 gcc-970202 gcc-970509 gcc-970713
egcs-970825 gcc-961118 gcc-970207 gcc-970522 gcc-970721
egcs-970828 gcc-961122 gcc-970214 gcc-970531 gcc-970725
egcs-970904 gcc-961215 gcc-970222 gcc-970606 gcc-970803
egcs-970907 gcc-961219 gcc-970314 gcc-970614 gcc.old
gcc gcc-970106 gcc-970322 gcc-970621
gcc-2.7.2.1 gcc-970117 gcc-970421 gcc-970628
You can always do
if [ -f $xxxxx/gcc.default ]
then
mv $xxxxx/gcc $xxxxx/gcc.default
fi
while installing it.
>
> > BTW, one thing comes to mind is now you have to add -L/usr/local/lib
> > just to get the right libstdc++.
> I solved this by moving the libstdc++.so link and libstdc++.a to the compiler
> directory ie. /usr/local/lib/gcc-lib/i586-linux/egcs-2.90.07 .
>
Do you think it is a good solution? I think it is even worse than
-L/usr/local/lib since libstdc++ should be in sync with
/usr/local/include/g++. You are asking for trouble this way. Also,
that means "make install" doesn't work anymore.
That is just one potential problem. I don't know what else may
come up.
--
H.J. Lu (hjl@gnu.ai.mit.edu)
More information about the Gcc
mailing list