source: BOOK/temp-system/common/flex.xml@ 0838ef3

clfs-3.0.0-systemd systemd
Last change on this file since 0838ef3 was 2ca606a, checked in by William Harrington <kb0iic@…>, 11 years ago

Bison and Flex hardcode the m4 binary to /cross-tools/bin/m4 durin temp-system which is not what we want. Fix it so that it is m4 without a path so that the PATH determines which m4 binary will be ran.

  • Property mode set to 100644
File size: 2.1 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-temp-system-flex" role="wrap">
9 <?dbhtml filename="flex.html"?>
10
11 <title>Flex-&flex-version;</title>
12
13 <indexterm zone="ch-temp-system-flex">
14 <primary sortas="a-Flex">Flex</primary>
15 <secondary>temporary system</secondary>
16 </indexterm>
17
18 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
19 href="../../final-system/common/flex.xml"
20 xpointer="xpointer(//*[@role='package'])"/>
21
22 <sect2 role="installation">
23 <title>Installation of Flex</title>
24
25 <para os="t3">When cross compiling, the <command>configure</command>
26 script does not determine the correct values for the following.
27 Set the values manually:</para>
28
29<screen os="t4"><userinput>cat &gt; config.cache &lt;&lt; EOF
30ac_cv_func_malloc_0_nonnull=yes
31ac_cv_func_realloc_0_nonnull=yes
32EOF</userinput></screen>
33
34 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
35 href="../../final-system/common/flex.xml"
36 xpointer="xpointer(//*[@os='a'])"/>
37
38<screen os="cb"><userinput>M4=m4 ./configure --prefix=/tools \
39 --build=${CLFS_HOST} --host=${CLFS_TARGET} \
40 --cache-file=config.cache</userinput></screen>
41
42 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
43 href="../../final-system/common/flex.xml"
44 xpointer="xpointer(//*[@os='c'])"/>
45
46 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
47 href="../../final-system/common/flex.xml"
48 xpointer="xpointer(//*[@os='d'])"/>
49
50 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
51 href="../../final-system/common/flex.xml"
52 xpointer="xpointer(//*[@os='f'])"/>
53
54 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
55 href="../../final-system/common/flex.xml"
56 xpointer="xpointer(//*[@os='g'])"/>
57
58 </sect2>
59
60 <sect2 role="content">
61 <title/>
62
63 <para>Details on this package are located in <xref
64 linkend="contents-flex" role="."/></para>
65
66 </sect2>
67
68</sect1>
Note: See TracBrowser for help on using the repository browser.