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-pkg-config" role="wrap">
|
---|
9 | <?dbhtml filename="pkg-config.html"?>
|
---|
10 |
|
---|
11 | <title>Pkg-config-&pkg-config-version;</title>
|
---|
12 |
|
---|
13 | <indexterm zone="ch-system-pkg-config">
|
---|
14 | <primary sortas="a-Pkg-config">Pkg-config</primary>
|
---|
15 | </indexterm>
|
---|
16 |
|
---|
17 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
18 | href="../common/pkg-config.xml"
|
---|
19 | xpointer="xpointer(//*[@role='package'])"/>
|
---|
20 |
|
---|
21 | <sect2 role="installation">
|
---|
22 | <title>Installation of Pkg-config</title>
|
---|
23 |
|
---|
24 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
25 | href="../common/pkg-config.xml"
|
---|
26 | xpointer="xpointer(//*[@os='a'])"/>
|
---|
27 |
|
---|
28 | <screen os="b"><userinput>CC="gcc ${BUILD64}" \
|
---|
29 | ./configure --prefix=/usr \
|
---|
30 | --with-pc-path=/usr/share/pkgconfig </userinput></screen>
|
---|
31 |
|
---|
32 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
33 | href="../common/pkg-config.xml"
|
---|
34 | xpointer="xpointer(//*[@os='c'])"/>
|
---|
35 |
|
---|
36 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
37 | href="../common/pkg-config.xml"
|
---|
38 | xpointer="xpointer(//*[@os='d'])"/>
|
---|
39 |
|
---|
40 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
41 | href="../common/pkg-config.xml"
|
---|
42 | xpointer="xpointer(//*[@os='e'])"/>
|
---|
43 |
|
---|
44 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
45 | href="../common/pkg-config.xml"
|
---|
46 | xpointer="xpointer(//*[@os='f'])"/>
|
---|
47 |
|
---|
48 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
49 | href="../common/pkg-config.xml"
|
---|
50 | xpointer="xpointer(//*[@os='g'])"/>
|
---|
51 |
|
---|
52 | <para os="m1">On multilib builds the library direcory has been removed from
|
---|
53 | the default search path of <command>pkg-config</command>. Set some
|
---|
54 | environment variables to help set the path correctly in the future:</para>
|
---|
55 |
|
---|
56 | <screen os="m2"><userinput>export PKG_CONFIG_PATH32="/usr/lib/pkgconfig"
|
---|
57 | export PKG_CONFIG_PATH64="/usr/lib64/pkgconfig"</userinput></screen>
|
---|
58 |
|
---|
59 | <para os="m3">Export these variables to prevent any issues in the
|
---|
60 | future.</para>
|
---|
61 |
|
---|
62 | <screen os="m4"><userinput>cat >> ${CLFS}/root/.bash_profile << EOF
|
---|
63 | export PKG_CONFIG_PATH32="${PKG_CONFIG_PATH32}"
|
---|
64 | export PKG_CONFIG_PATH64="${PKG_CONFIG_PATH64}"
|
---|
65 | EOF</userinput></screen>
|
---|
66 |
|
---|
67 | </sect2>
|
---|
68 |
|
---|
69 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
70 | href="../common/pkg-config.xml"
|
---|
71 | xpointer="xpointer(id('contents-pkg-config'))"/>
|
---|
72 |
|
---|
73 | </sect1>
|
---|