Difference between revisions of "GCC-3.3"
From CBLFS
Jump to navigationJump to searchm (→Installing the Complete Package) |
|||
Line 124: | Line 124: | ||
ln -sfv /usr/lib64/libstdc++.so.5.0.7 /opt/gcc-{{GCC-3.3-Version}}/lib64 && | ln -sfv /usr/lib64/libstdc++.so.5.0.7 /opt/gcc-{{GCC-3.3-Version}}/lib64 && | ||
ln -sfv libstdc++.so.5.0.7 /opt/gcc-{{GCC-3.3-Version}}/lib64/libstdc++.so.5 | ln -sfv libstdc++.so.5.0.7 /opt/gcc-{{GCC-3.3-Version}}/lib64/libstdc++.so.5 | ||
+ | |||
+ | [[Category:Programming]] |
Latest revision as of 15:57, 19 March 2009
Contents
Introduction to GCC-3.3
Project Homepage: Unknown
Dependencies
Optional (Testsuite)
Non-Multilib
Compile the package:
patch -Np1 -i ../gcc-3.3.6-no_fixincludes-1.patch && patch -Np1 -i ../gcc-3.3.6-linkonce-1.patch && sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in && mkdir ../gcc-build && cd ../gcc-build && ../gcc-3.3.6/configure --prefix=/opt/gcc-3.3.6 \ --enable-threads=posix --disable-multilib \ --enable-shared --enable-languages=c,c++ && make bootstrap
If desired, run the test suite using the following commands:
make -k check && ../gcc-3.3.6contrib/test_summary >test_summary.log 2>&1 && ../gcc-3.3.6/contrib/test_summary | \ grep -A7 Summ >test_summary_short.log 2>&1
Installing libstdc++ Only
Copy libstdc++.so.5 to /usr/lib.
cp -av $(gcc -dumpmachine)/libstdc++-v3/src/.libs/libstdc++.so.5* /usr/lib
Installing the Complete Package
Install the entire package:
make install && chown -Rv root:root /opt/gcc-3.3.6/lib/gcc-lib/$(gcc -dumpmachine)/3.3.6/include
Optionally move libstdc++.so.5 to /usr/lib:
mv -v /opt/gcc-3.3.6/lib/libstdc++.so.5* /usr/lib && ln -sfv /usr/lib/libstdc++.so.5.0.7 /opt/gcc-3.3.6/lib && ln -sfv libstdc++.so.5.0.7 /opt/gcc-3.3.6/lib/libstdc++.so.5
Multilib
Compile the package:
patch -Np1 -i ../gcc-3.3.6-no_fixincludes-1.patch && patch -Np1 -i ../gcc-3.3.6-linkonce-1.patch && sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in && mkdir ../gcc-build && cd ../gcc-build && ../gcc-3.3.6/configure --prefix=/opt/gcc-3.3.6 \ --libdir=/opt/gcc-3.3.6/lib64 --enable-multilib \ --enable-threads=posix --enable-shared \ --enable-languages=c,c++ && make bootstrap
If desired, run the test suite using the following commands:
make -k check && ../gcc-3.3.6/contrib/test_summary >test_summary.log 2>&1 && ../gcc-3.3.6/contrib/test_summary | \ grep -A7 Summ >test_summary_short.log 2>&1
Installing libstdc++ Only
Copy libstdc++.so.5 to /usr/lib.
32Bit
cp -av $(gcc -dumpmachine)/32/libstdc++-v3/src/.libs/libstdc++.so.5* /usr/lib
N32
Please Contribute
64Bit
cp -av $(gcc -dumpmachine)/libstdc++-v3/src/.libs/libstdc++.so.5* /usr/lib64
Installing the Complete Package
Install the entire package:
make install && chown -Rv root:root /opt/gcc-3.3.6/lib64/gcc-lib/$(gcc -dumpmachine)/3.3.6/include
Optionally move libstdc++.so.5 to /usr/lib:
32Bit
mv -v /opt/gcc-3.3.6/lib/libstdc++.so.5* /usr/lib && ln -sfv /usr/lib/libstdc++.so.5.0.7 /opt/gcc-3.3.6/lib && ln -sfv libstdc++.so.5.0.7 /opt/gcc-3.3.6/lib/libstdc++.so.5
N32
mv -v /opt/gcc-3.3.6/lib32/libstdc++.so.5* /usr/lib32 && ln -sfv /usr/lib32/libstdc++.so.5.0.7 /opt/gcc-3.3.6/lib32 && ln -sfv libstdc++.so.5.0.7 /opt/gcc-3.3.6/lib32/libstdc++.so.5
64Bit
mv -v /opt/gcc-3.3.6/lib64/libstdc++.so.5* /usr/lib64 && ln -sfv /usr/lib64/libstdc++.so.5.0.7 /opt/gcc-3.3.6/lib64 && ln -sfv libstdc++.so.5.0.7 /opt/gcc-3.3.6/lib64/libstdc++.so.5