gcc-2.95.3 (gcc2libs)
Reported by: |
tushar@… |
Owned by: |
tushar@… |
Priority:
|
low
|
Milestone:
|
|
Component:
|
BOOK
|
Version:
|
~CVS
|
Severity:
|
minor
|
Keywords:
|
|
Cc:
|
|
|
|
Since many commercial and precompiled packages depend on gcc2 libs, and the
question is asked n number of times on the lists, it would be better if the book
included a section on installation of gcc2 libs. I use the following that
compiles the complete gcc-2.95.3 and then copies the libs, but there may be a
shorter way to do it (never bothered to research it since it is only done once):
../gcc-2.95.3/configure --prefix=/var/tmp/gcc --enable-shared \
--enable-languages=c++ --enable-threads=posix &&
make &&
make install &&
mv /var/tmp/gcc/lib/*.so* /usr/lib &&
ln -sf libstdc++-libc6.3-2.so.3 /usr/lib/libstdc++-libc6.1-1.so.2 &&
ln -sf libstdc++-libc6.3-2.so.3 /usr/lib/libstdc++-libc6.2-2.so.3 &&
ldconfig
Another option is to install it in a different directory e.g.
/usr/lib/gcc2-compat/ and ask the users to add the directory to LD_LIBRARY_PATH
for apps that need gcc2 libs.
Sync with gcc2 installation in LFS.