diff options
author | wiz <wiz> | 2013-04-16 13:55:33 +0000 |
---|---|---|
committer | wiz <wiz> | 2013-04-16 13:55:33 +0000 |
commit | 23c1efca42203fb7055d73aacd0a4999545fd85f (patch) | |
tree | ed464fa474e99c08fe3b57c55c9db5e8666dea5f /doc/guide | |
parent | a690dfa9454c5fbbcee6458de041864128788019 (diff) | |
download | pkgsrc-23c1efca42203fb7055d73aacd0a4999545fd85f.tar.gz |
Explain when buildlink3.mk files need to be included in other buildlink3.mk
files. Requested by rodent.
Diffstat (limited to 'doc/guide')
-rw-r--r-- | doc/guide/files/buildlink.xml | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/doc/guide/files/buildlink.xml b/doc/guide/files/buildlink.xml index b27584f82f1..9d5b893c5f3 100644 --- a/doc/guide/files/buildlink.xml +++ b/doc/guide/files/buildlink.xml @@ -1,4 +1,4 @@ -<!-- $NetBSD: buildlink.xml,v 1.31 2013/03/20 01:29:24 obache Exp $ --> +<!-- $NetBSD: buildlink.xml,v 1.32 2013/04/16 13:55:33 wiz Exp $ --> <chapter id="buildlink"> <title>Buildlink methodology</title> @@ -335,6 +335,30 @@ BUILDLINK_TREE+= -tiff <filename>buildlink3.mk</filename> file is included. Dependencies are only added for directly include <filename>buildlink3.mk</filename> files.</para> + + <para>When providing a <filename>buildlink3.mk</filename> and + including other <filename>buildlink3.mk</filename> files in it, + please only add necessary ones. I.e. those whose libraries or + header files are automatically exposed when the package is + use.</para> + + <para>In particular, if only an executable + (<filename>bin/foo</filename>) is linked against a library, that + library does not need to be propagated in the + <filename>buildlink3.mk</filename> file.</para> + + <para>The following steps should help you decide if a + <filename>buildlink3.mk</filename> file needs to be included: + <itemizedlist> + <listitem><para>Run <filename>ldd</filename> on all installed + libraries and look against what other libraries they link. The + packages providing these must be + buildlinked.</para></listitem> + <listitem><para>Look at the installed header files: What + headers do they include? The packages providing these files + must be buildlinked.</para></listitem> + </itemizedlist> + </para> </sect2> <sect2 id="updating-buildlink-depends"> |