gcc-2953-inst.xml 993 B

1234567891011121314151617181920212223242526272829
  1. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  2. <sect2>
  3. <title>Installation of GCC</title>
  4. <para>This package is known to behave badly when you have changed its
  5. default optimization flags (including the -march and -mcpu options).
  6. Therefore, if you have defined any environment variables that override
  7. default optimizations, such as CFLAGS and CXXFLAGS, we recommend unsetting
  8. or modifying them when building GCC.</para>
  9. <para><screen><userinput>patch -Np1 -i ../gcc-2.95.3-2.patch
  10. echo timestamp > gcc/cstamp-h.in
  11. mkdir ../gcc-2-build
  12. cd ../gcc-2-build
  13. ../gcc-2.95.3/configure --prefix=/opt/gcc-2.95.3 \
  14. &nbsp;&nbsp;&nbsp;&nbsp;--enable-shared --enable-languages=c,c++ \
  15. &nbsp;&nbsp;&nbsp;&nbsp;--enable-threads=posix
  16. make bootstrap
  17. make install</userinput></screen></para>
  18. <para>Add the lib directory to ld.so.conf so they can be found during
  19. run-time:</para>
  20. <para><screen><userinput>echo "/opt/gcc-2.95.3/lib" >> /etc/ld.so.conf
  21. ldconfig</userinput></screen></para>
  22. </sect2>