source: chapter06/pkgconfig.xml@ 42130d6

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 7.10 7.10-rc1 8.0 8.0-rc1 8.1 8.1-rc1 8.1-rc2 8.2 8.2-rc1 8.3 8.3-rc1 8.3-rc2 8.4 8.4-rc1 9.0 9.0-rc1 9.1 9.1-rc1 BOOK.old cross-chap5 ml-11.0 multilib nosym old-trunk trunk xry111/git-transition xry111/glibc-2.34 xry111/tester-nohack xry111/usr-move
Last change on this file since 42130d6 was 42130d6, checked in by Krejzi <krejzi@…>, 6 years ago

Updated to file-5.26, gcc-6.1.0, grep-2.25, gzip-1.8, linux-4.5.2 and tzdata-2016d.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11049 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 3.8 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-pkgconfig" role="wrap">
9 <?dbhtml filename="pkg-config.html"?>
10
11 <sect1info condition="script">
12 <productname>pkgconfig</productname>
13 <productnumber>&pkgconfig-version;</productnumber>
14 <address>&pkgconfig-url;</address>
15 </sect1info>
16
17 <title>Pkg-config-&pkgconfig-version;</title>
18
19 <indexterm zone="ch-system-pkgconfig">
20 <primary sortas="a-pkgconfig">Pkgconfig</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para> The pkg-config package contains a tool for passing the include path
27 and/or library paths to build tools during the configure and make file
28 execution.</para>
29
30 <segmentedlist>
31 <segtitle>&buildtime;</segtitle>
32 <segtitle>&diskspace;</segtitle>
33
34 <seglistitem>
35 <seg>&pkgconfig-ch6-sbu;</seg>
36 <seg>&pkgconfig-ch6-du;</seg>
37 </seglistitem>
38 </segmentedlist>
39
40 </sect2>
41
42 <sect2 role="installation">
43 <title>Installation of Pkg-config</title>
44
45 <para>Prepare Pkg-config for compilation:</para>
46
47<screen><userinput remap="configure">./configure --prefix=/usr \
48 --with-internal-glib \
49 --disable-compile-warnings \
50 --disable-host-tool \
51 --docdir=/usr/share/doc/pkg-config-&pkgconfig-version;</userinput></screen>
52
53 <variablelist>
54 <title>The meaning of the new configure options:</title>
55
56 <varlistentry>
57 <term><parameter>--with-internal-glib</parameter></term>
58 <listitem>
59 <para>This will allow pkg-config to use its internal version of
60 Glib because an external version is not available in LFS.</para>
61 </listitem>
62 </varlistentry>
63
64 <varlistentry>
65 <term><parameter>--disable-compile-warnings</parameter></term>
66 <listitem>
67 <para>This option prevents the build system from using
68 compiler flags which cause build failure when building
69 with GCC 6.</para>
70 </listitem>
71 </varlistentry>
72
73 <varlistentry>
74 <term><parameter>--disable-host-tool</parameter></term>
75 <listitem>
76 <para>This option disables the creation of an undesired hard link
77 to the pkg-config program.</para>
78 </listitem>
79 </varlistentry>
80
81 </variablelist>
82
83
84
85 <para>Compile the package:</para>
86
87<screen><userinput remap="make">make</userinput></screen>
88
89 <para>To test the results, issue:</para>
90
91<screen><userinput remap="test">make check</userinput></screen>
92
93 <para>Install the package:</para>
94
95<screen><userinput remap="install">make install</userinput></screen>
96
97 </sect2>
98
99 <sect2 id="contents-pkgconfig" role="content">
100 <title>Contents of Pkg-config</title>
101
102 <segmentedlist>
103 <segtitle>Installed program</segtitle>
104 <segtitle>Installed directory</segtitle>
105
106 <seglistitem>
107 <seg>pkg-config</seg>
108 <seg>/usr/share/doc/pkg-config-&pkgconfig-version;</seg>
109 </seglistitem>
110 </segmentedlist>
111
112 <variablelist>
113 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
114 <?dbfo list-presentation="list"?>
115 <?dbhtml list-presentation="table"?>
116
117 <varlistentry id="pkgconfig">
118 <!-- Don't remove the extra space, it prevents a FOP warning. -->
119 <term><command>pkg-config </command></term>
120 <listitem>
121 <para>returns meta information for the specified library or package
122 </para>
123 <indexterm zone="ch-system-pkgconfig pkgconfig">
124 <primary sortas="b-pkgconfig">pkg-config</primary>
125 </indexterm>
126 </listitem>
127 </varlistentry>
128
129 </variablelist>
130
131 </sect2>
132
133</sect1>
Note: See TracBrowser for help on using the repository browser.