libstdc++.a in gcc-lib?
Marco Manfai Yu
yumf@ultimatech.com
Fri Oct 9 10:40:00 GMT 1998
> If you need to run multiple versions of gcc or egcs, the simplest way
> to do it is to install them in completely separate trees. You can
> cause this to happen with the "--prefix=/some/special/directory"
> argument to configure. I always install large packages like gcc,
> egcs, emacs, gdb, and perl into directories like:
>
> /usr/local/packages/egcs-1.1b
>
Yes. I am using --prefix now. I am just curious because it seems that
gcc's -V mechanism and the gcc-lib/<platform>/<version>/ structure
is doing the same thing. If libstdc++.a is in the same place as
libgcc.a, I can say
% g++
to run the latest g++ version and
% g++ -Vegcs-2.90.29
to get my 1.0.3a.
Actually I can even install gcc-2.8.1 into the same directory and use
the -V option to run that if I want. I just think that this is a
cleaner way to install multiple versions of the compiler and I (or
other users) can use any of them without changing their paths or
the links to /usr/local/bin.
The compiler works great though. Great job.
Marco Yu
yumf@ultimatech.com
More information about the Gcc
mailing list