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

clfs-3.0.0-systemd systemd
Last change on this file since a7a05cf was 02cf479, checked in by Chris Staub <chris@…>, 11 years ago

Updated text in pkg-config-lite for cross-tools

  • Property mode set to 100644
File size: 3.0 KB
RevLine 
[f319d64]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
[87d6725]27 dependencies. Unfortunately, this could result in those packages
[f319d64]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
[39612b5]37<screen os="c"><userinput>./configure --prefix=/cross-tools --host=${CLFS_TARGET}\
[f319d64]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
[39612b5]52 <varlistentry>
53 <term><parameter>--host=${CLFS_TARGET}</parameter></term>
54 <listitem>
[02cf479]55 <para>Several packages that we will cross-compile later will try to
56 search for <command>${CLFS_TARGET}-pkg-config</command>. Setting
57 this option ensures that Pkg-config-lite will create a hard
58 link in <filename class="directory">/cross-tools/bin</filename> with
59 this name, so that it will be used instead of any similarly-named
60 program that might exist on the host.</para>
[39612b5]61 </listitem>
62 </varlistentry>
63
[f319d64]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.