source: BOOK/cross-tools/multilib/pkg-config-lite.xml@ f9639be

clfs-3.0.0-systemd systemd
Last change on this file since f9639be was 39612b5, checked in by William Harrington <kb0iic@…>, 11 years ago

Add --host={CLFS_TARGET} during Cross tools pkg-config configure so that the <host-triplet>-pkg-config file installed to /cross-tools/bin is named properly for when cross-compiling in temp-system. Make and Util-Linux, for example, will look for <triplet>-pkg-config based on the running host (x86_64, etc) and will look for x86_64-pkg-config on the host rather than use /cross-tools/bin/pkg-config or /cross-tools/bin/{CLFS_TARGET}-pkg-config. This will fix that.

  • Property mode set to 100644
File size: 2.8 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 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
26 href="../common/pkg-config-lite.xml"
27 xpointer="xpointer(//*[@os='a'])"/>
28
29 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
30 href="../common/pkg-config-lite.xml"
31 xpointer="xpointer(//*[@os='b'])"/>
32
[39612b5]33<screen os="c"><userinput>./configure --prefix=/cross-tools --host=${CLFS_TARGET} \
[f319d64]34 --with-pc-path=/tools/lib64/pkgconfig:/tools/share/pkgconfig</userinput></screen>
35
36 <variablelist os="d">
37 <title>The meaning of the new configure option:</title>
38
39 <varlistentry>
40 <term><parameter>--with-pc-path</parameter></term>
41 <listitem>
42 <para>This sets the default PKG_CONFIG_PATH to
43 <filename class="directory">/tools/lib64/pkgconfig</filename> and
44 <filename class="directory">/tools/share/pkgconfig</filename>.</para>
45 </listitem>
46 </varlistentry>
47
[39612b5]48 <varlistentry>
49 <term><parameter>--host=${CLFS_TARGET}</parameter></term>
50 <listitem>
51 <para>This option makes sure the installation includes the proper
52 <command>{$CLFS_TARGET}-pkg-config</command> to be detected and used
53 when cross-compiling some tools in the temporary system and boot
54 chapter.</para>
55 </listitem>
56 </varlistentry>
57
[f319d64]58 </variablelist>
59
60 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
61 href="../common/pkg-config-lite.xml"
62 xpointer="xpointer(//*[@os='e'])"/>
63
64 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
65 href="../common/pkg-config-lite.xml"
66 xpointer="xpointer(//*[@os='f'])"/>
67
68 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
69 href="../common/pkg-config-lite.xml"
70 xpointer="xpointer(//*[@os='g'])"/>
71
72 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
73 href="../common/pkg-config-lite.xml"
74 xpointer="xpointer(//*[@os='h'])"/>
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.