gcc-exp.xml 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. <sect2>
  2. <title>Command explanations</title>
  3. <para>
  4. <userinput>patch -Np1 -i ../gcc-3.0.patch:</userinput> This patch
  5. changes all instances of re_max_failures to re_max_failures2.
  6. re_max_failures is a variable used within Glibc and with static
  7. compiling this variable sometimes clashes between the package's
  8. re_max_failures and the same variable in glibc. By renaming
  9. re_max_failures in the package to re_max_failures2 we just tell the
  10. package to use the second variable so that glibc won't be in the way.
  11. </para>
  12. <para>
  13. <userinput>--enable-languages=c,c++:</userinput> This only builds the C
  14. and C++ compilers and not the other available compilers as they are, on
  15. the average, not often used. If those other compilers are needed,
  16. the --enable-languages parameter can be omitted.
  17. </para>
  18. <para>
  19. <userinput>ln -s ../usr/bin/cpp:</userinput> This
  20. creates the $LFS/lib/cpp symlink. Some packages explicitly try to find
  21. cpp in /lib.
  22. </para>
  23. <para>
  24. <userinput>ln -s ../bin/cpp:</userinput> This
  25. creates the $LFS/usr/lib/cpp symlink as there are packages that expect
  26. cpp to be in /usr/lib.
  27. </para>
  28. </sect2>