- Document that verbose builds are strongly preferred
Submitted by: amdmi3 Reviewed by: mat, wblock Approved by: mat, wblock Differential Revision: D7533
This commit is contained in:
parent
d6e4e85075
commit
cbcabdf522
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=49378
1 changed files with 26 additions and 0 deletions
|
@ -322,6 +322,32 @@ exec %%LOCALBASE%%/bin/java -jar %%DATADIR%%/foo.jar "$@"</programlisting>
|
|||
<programlisting>CFLAGS+= -DHAVE_SOUND</programlisting>
|
||||
</sect1>
|
||||
|
||||
<sect1 xml:id="dads-verbose-logs">
|
||||
<title>Verbose Build Logs</title>
|
||||
|
||||
<para>Make the port build system display all commands executed
|
||||
during the build stage. Complete build logs are crucial to
|
||||
debugging port problems.</para>
|
||||
|
||||
<para>Non-informative build log example (bad):</para>
|
||||
|
||||
<programlisting> CC source1.o
|
||||
CC source2.o
|
||||
CCLD someprogram</programlisting>
|
||||
|
||||
<para>Verbose build log example (good):</para>
|
||||
|
||||
<programlisting>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</programlisting>
|
||||
|
||||
<para>Some build systems such as <application>CMake</application>,
|
||||
<application>ninja</application>, and <application>GNU
|
||||
configure</application> are set up for verbose logging by
|
||||
the ports framework. In other cases, ports might need
|
||||
individial tweaks.</para>
|
||||
</sect1>
|
||||
|
||||
<sect1 xml:id="dads-feedback">
|
||||
<title>Feedback</title>
|
||||
|
||||
|
|
Loading…
Reference in a new issue