source: BOOK/cross-tools/common/pkg-config-lite.xml@ 17e2cca

clfs-3.0.0-sysvinit sysvinit
Last change on this file since 17e2cca was 9597c5a, checked in by Chris Staub <chris@…>, 11 years ago

Replaced PKG_CONFIG vars with pkg-config-lite installed in /cross-tools

Conflicts:

BOOK/introduction/common/changelog.xml

  • Property mode set to 100644
File size: 2.4 KB
RevLine 
[9597c5a]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-cross-tools-pkg-config-lite" role="wrap">
9 <?dbhtml filename="pkg-config-lite.html"?>
10
11 <title>Pkg-config-lite-&pkg-config-lite-version;</title>
12
13 <indexterm zone="ch-cross-tools-pkg-config-lite">
14 <primary sortas="a-Pkg-config-lite">Pkg-config-lite</primary>
15 <secondary>cross tools</secondary>
16 </indexterm>
17
18 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
19 href="../../final-system/common/pkg-config-lite.xml"
20 xpointer="xpointer(//*[@role='package'])"/>
21
22 <sect2 role="installation">
23 <title>Installation of Pkg-config-lite</title>
24
25 <para os="a">Several packages in the temporary system will use
26 <command>pkg-config</command> to find various required and optional
27 dependencies. The problem is that this could result in those packages
28 finding libraries on the host system and trying to link against them,
29 which will not work. To avoid this problem, we will install
30 a <command>pkg-config</command> binary in
31 <filename class="directory">/cross-tools</filename> and configure it so
32 that it will look for Pkg-config files only in
33 <filename class="directory">/tools</filename>.</para>
34
35 <para os="b">Prepare Pkg-config-lite for compilation:</para>
36
37<screen os="c"><userinput>./configure --prefix=/cross-tools \
38 --with-pc-path=/tools/lib/pkgconfig:/tools/share/pkgconfig</userinput></screen>
39
40 <variablelist os="d">
41 <title>The meaning of the new configure option:</title>
42
43 <varlistentry>
44 <term><parameter>--with-pc-path</parameter></term>
45 <listitem>
46 <para>This sets the default PKG_CONFIG_PATH to
47 <filename class="directory">/tools/lib/pkgconfig</filename> and
48 <filename class="directory">/tools/share/pkgconfig</filename>.</para>
49 </listitem>
50 </varlistentry>
51
52 </variablelist>
53
54 <para os="e">Compile the package:</para>
55
56<screen os="f"><userinput>make</userinput></screen>
57
58 <para os="g">Install the package:</para>
59
60<screen os="h"><userinput>make install</userinput></screen>
61
62 </sect2>
63
64 <sect2 role="content">
65 <title/>
66
67 <para>Details on this package are located in <xref
68 linkend="contents-pkg-config-lite" role="."/></para>
69
70 </sect2>
71
72</sect1>
Note: See TracBrowser for help on using the repository browser.