source: BOOK/final-system/multilib/pkg-config.xml@ 7fbb561

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 7fbb561 was cb2118a, checked in by Jonathan Norman <jonathan@…>, 13 years ago

Added glib to list, 32bit to util-linux mutlilib title and removed from pkg-config

  • Property mode set to 100644
File size: 3.0 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-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>GLIB_CFLAGS="-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include" \
29 GLIB_LIBS="-lglib-2.0" \
30 CC="gcc ${BUILD64}" \
31 ./configure --prefix=/usr \
32 --with-pc-path=/usr/share/pkgconfig </userinput></screen>
33
34 <variablelist os="bb">
35 <title>The meaning of the new configure option:</title>
36
37 <varlistentry>
38 <term><parameter>GLIB_CFLAGS="-I/usr/include/glib-2.0 -I/usr/libi64/glib-2.0/include"</parameter></term>
39 <term><parameter>GLIB_LIBS="-lglib-2.0"</parameter></term>
40 <listitem>
41 <para>Pkg-config no longer comes with Glib and because Pkg-config
42 has not been installed itself it needs to be told where Glib is.</para>
43 </listitem>
44 </varlistentry>
45 </variablelist>
46
47
48 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
49 href="../common/pkg-config.xml"
50 xpointer="xpointer(//*[@os='c'])"/>
51
52 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
53 href="../common/pkg-config.xml"
54 xpointer="xpointer(//*[@os='d'])"/>
55
56 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
57 href="../common/pkg-config.xml"
58 xpointer="xpointer(//*[@os='e'])"/>
59
60 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
61 href="../common/pkg-config.xml"
62 xpointer="xpointer(//*[@os='f'])"/>
63
64 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
65 href="../common/pkg-config.xml"
66 xpointer="xpointer(//*[@os='g'])"/>
67
68 <para os="m1">On multilib builds the library direcory has been removed from
69 the default search path of <command>pkg-config</command>. Set some
70 environment variables to help set the path correctly in the future:</para>
71
72<screen os="m2"><userinput>export PKG_CONFIG_PATH32="/usr/lib/pkgconfig"
73export PKG_CONFIG_PATH64="/usr/lib64/pkgconfig"</userinput></screen>
74
75 <para os="m3">Export these variables to prevent any issues in the
76 future.</para>
77
78<screen os="m4"><userinput>cat &gt;&gt; /root/.bash_profile &lt;&lt; EOF
79export PKG_CONFIG_PATH32="${PKG_CONFIG_PATH32}"
80export PKG_CONFIG_PATH64="${PKG_CONFIG_PATH64}"
81EOF</userinput></screen>
82
83 </sect2>
84
85 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
86 href="../common/pkg-config.xml"
87 xpointer="xpointer(id('contents-pkg-config'))"/>
88
89</sect1>
Note: See TracBrowser for help on using the repository browser.