source: BOOK/cross-tools/common/pkg-config-lite.xml@ 8df2af04

sysvinit
Last change on this file since 8df2af04 was 685168b, checked in by Chris Staub <chris@…>, 10 years ago

Swap command explanations to match the actual commands

  • 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-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. Unfortunately, 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 --host=${CLFS_TARGET}\
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>--host=${CLFS_TARGET}</parameter></term>
45 <listitem>
46 <para>Several packages that we will cross-compile later will try to
47 search for <command>${CLFS_TARGET}-pkg-config</command>. Setting
48 this option ensures that Pkg-config-lite will create a hard
49 link in <filename class="directory">/cross-tools/bin</filename> with
50 this name, so that it will be used instead of any similarly-named
51 program that might exist on the host.</para>
52 </listitem>
53 </varlistentry>
54
55 <varlistentry>
56 <term><parameter>--with-pc-path</parameter></term>
57 <listitem>
58 <para>This sets the default PKG_CONFIG_PATH to
59 <filename class="directory">/tools/lib/pkgconfig</filename> and
60 <filename class="directory">/tools/share/pkgconfig</filename>.</para>
61 </listitem>
62 </varlistentry>
63
64 </variablelist>
65
66 <para os="e">Compile the package:</para>
67
68<screen os="f"><userinput>make</userinput></screen>
69
70 <para os="g">Install the package:</para>
71
72<screen os="h"><userinput>make install</userinput></screen>
73
74 </sect2>
75
76 <sect2 role="content">
77 <title/>
78
79 <para>Details on this package are located in <xref
80 linkend="contents-pkg-config-lite" role="."/></para>
81
82 </sect2>
83
84</sect1>
Note: See TracBrowser for help on using the repository browser.