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

sysvinit
Last change on this file since c8c8c51 was b27081c4, checked in by Chris Staub <chris@…>, 9 years ago

Put one configure option per line

  • Property mode set to 100644
File size: 3.0 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
[2d1be42]27 dependencies. Unfortunately, this could result in those packages
[9597c5a]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
[b27081c4]37<screen os="c"><userinput>./configure \
38 --prefix=/cross-tools \
39 --host=${CLFS_TARGET} \
[9597c5a]40 --with-pc-path=/tools/lib/pkgconfig:/tools/share/pkgconfig</userinput></screen>
41
42 <variablelist os="d">
43 <title>The meaning of the new configure option:</title>
44
[a00e1cc0]45 <varlistentry>
46 <term><parameter>--host=${CLFS_TARGET}</parameter></term>
47 <listitem>
[4ce9139]48 <para>Several packages that we will cross-compile later will try to
49 search for <command>${CLFS_TARGET}-pkg-config</command>. Setting
50 this option ensures that Pkg-config-lite will create a hard
51 link in <filename class="directory">/cross-tools/bin</filename> with
52 this name, so that it will be used instead of any similarly-named
53 program that might exist on the host.</para>
[a00e1cc0]54 </listitem>
55 </varlistentry>
56
[685168b]57 <varlistentry>
58 <term><parameter>--with-pc-path</parameter></term>
59 <listitem>
60 <para>This sets the default PKG_CONFIG_PATH to
61 <filename class="directory">/tools/lib/pkgconfig</filename> and
62 <filename class="directory">/tools/share/pkgconfig</filename>.</para>
63 </listitem>
64 </varlistentry>
65
[9597c5a]66 </variablelist>
67
68 <para os="e">Compile the package:</para>
69
70<screen os="f"><userinput>make</userinput></screen>
71
72 <para os="g">Install the package:</para>
73
74<screen os="h"><userinput>make install</userinput></screen>
75
76 </sect2>
77
78 <sect2 role="content">
79 <title/>
80
81 <para>Details on this package are located in <xref
82 linkend="contents-pkg-config-lite" role="."/></para>
83
84 </sect2>
85
86</sect1>
Note: See TracBrowser for help on using the repository browser.