Index: en_US.ISO8859-1/books/porters-handbook/porting-dads/chapter.xml =================================================================== --- en_US.ISO8859-1/books/porters-handbook/porting-dads/chapter.xml +++ en_US.ISO8859-1/books/porters-handbook/porting-dads/chapter.xml @@ -322,6 +322,32 @@ CFLAGS+= -DHAVE_SOUND + + Verbose Build Logs + + Make the port build system display all commands executed + during the build stage. Complete build logs are crucial to + debugging port problems. + + Non-informative build log example (bad): + + CC source1.o + CC source2.o + CCLD someprogram + + Verbose build log example (good): + + cc -O2 -pipe -I/usr/local/include -c -o source1.o source1.c +cc -O2 -pipe -I/usr/local/include -c -o source2.o source2.c +cc -o someprogram source1.o source2.o -L/usr/local/lib -lsomelib + + Some build systems such as CMake, + ninja, and GNU + configure are set up for verbose logging by + the ports framework. In other cases ports might need + individial tweaks. + + Feedback