gcc-exp.xml 1.1 KB

123456789101112131415161718192021222324252627282930
  1. <sect2>
  2. <title>Command explanations</title>
  3. <para><userinput>make BOOT_LDFLAGS=-static:</userinput>
  4. This is the equivalent to make LDFLAGS=-static as we use with other
  5. packages to compile them statically.</para>
  6. <para><userinput>--prefix=/usr:</userinput> This is NOT a typo. GCC hard
  7. codes some paths while compiling and so we need to pass /usr as the
  8. prefix during ./configure. We pass the real install prefix during the
  9. make install command later.</para>
  10. <para><userinput>--enable-languages=c,c++:</userinput> This only builds the C
  11. and C++ compilers and not the other available compilers as they are, on
  12. the average, not often used. If those other compilers are needed,
  13. the --enable-languages parameter can be omitted.</para>
  14. <para><userinput>--enable-threads=posix:</userinput> This enables C++
  15. exception handling for multithreaded code.</para>
  16. <para><userinput>ln -sf ../usr/bin/cpp:</userinput> This
  17. creates the $LFS/lib/cpp symlink. Some packages explicitly try to find
  18. cpp in /lib.</para>
  19. <para><userinput>ln -sf ../bin/cpp:</userinput> This
  20. creates the $LFS/usr/lib/cpp symlink as there are packages that expect
  21. cpp to be in /usr/lib.</para>
  22. </sect2>