gcc-exp.xml 1.1 KB

12345678910111213141516171819202122232425262728
  1. <sect2>
  2. <title>Command explanations</title>
  3. <para><userinput>patch -Np1 -i ../gcc-&gcc-version;.patch:</userinput>
  4. This new patch deals with incorrect handling of weak symbols, the
  5. over-optimization of calls to those weak symbols, an atexit issue and
  6. the __dso_handle symbol required for atexit's proper function.</para>
  7. <para><userinput>--prefix=/usr:</userinput> This is NOT a typo. GCC hard
  8. codes some paths while compiling and so we need to pass /usr as the
  9. prefix during ./configure. We pass the real install prefix during the
  10. make install command later.</para>
  11. <para><userinput>--enable-languages=c,c++:</userinput> This only builds the C
  12. and C++ compilers and not the other available compilers as they are, on
  13. the average, not often used. If those other compilers are needed,
  14. the --enable-languages parameter can be omitted.</para>
  15. <para><userinput>ln -s ../usr/bin/cpp:</userinput> This
  16. creates the $LFS/lib/cpp symlink. Some packages explicitly try to find
  17. cpp in /lib.</para>
  18. <para><userinput>ln -s ../bin/cpp:</userinput> This
  19. creates the $LFS/usr/lib/cpp symlink as there are packages that expect
  20. cpp to be in /usr/lib.</para>
  21. </sect2>