This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: libstdc++.a in gcc-lib?



> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]