source: chapter06/m4.xml@ fcc02767

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since fcc02767 was fcc02767, checked in by Bruce Dubbs <bdubbs@…>, 4 years ago

Initial commit of alternative cross LFS

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11897 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 1.9 KB
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
[b06ca36]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[673b0d8]4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
[bdea25ce]7
[fcc02767]8<sect1 id="ch-tools-m4" role="wrap">
[bdea25ce]9 <?dbhtml filename="m4.html"?>
10
[e747759]11 <sect1info condition="script">
12 <productname>m4</productname>
13 <productnumber>&m4-version;</productnumber>
14 <address>&m4-url;</address>
15 </sect1info>
16
[bdea25ce]17 <title>M4-&m4-version;</title>
18
[fcc02767]19 <indexterm zone="ch-tools-m4">
[bdea25ce]20 <primary sortas="a-M4">M4</primary>
[fcc02767]21 <secondary>tools</secondary>
[bdea25ce]22 </indexterm>
23
24 <sect2 role="package">
25 <title/>
26
[fcc02767]27 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
28 href="../chapter08/m4.xml"
29 xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
[673b0d8]30
[bdea25ce]31 <segmentedlist>
32 <segtitle>&buildtime;</segtitle>
33 <segtitle>&diskspace;</segtitle>
[6370fa6]34
[bdea25ce]35 <seglistitem>
[fcc02767]36 <seg>&m4-ch5-sbu;</seg>
37 <seg>&m4-ch5-du;</seg>
[bdea25ce]38 </seglistitem>
39 </segmentedlist>
[5888299]40
[bdea25ce]41 </sect2>
[73aedd1d]42
[bdea25ce]43 <sect2 role="installation">
44 <title>Installation of M4</title>
45
[fcc02767]46 <para>First, make some fixes introduced by glibc-2.28:</para>
[efca30a]47
48<screen><userinput remap="pre">sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' lib/*.c
49echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h</userinput></screen>
50
[bdea25ce]51 <para>Prepare M4 for compilation:</para>
[73aedd1d]52
[fcc02767]53<screen><userinput remap="configure">./configure --prefix=/usr \
54 --host=$LFS_TGT \
55 --build=$(build-aux/config.guess)</userinput></screen>
[73aedd1d]56
[bdea25ce]57 <para>Compile the package:</para>
[73aedd1d]58
[0445a3d]59<screen><userinput remap="make">make</userinput></screen>
[73aedd1d]60
[bdea25ce]61 <para>Install the package:</para>
[73aedd1d]62
[fcc02767]63<screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen>
[73aedd1d]64
[bdea25ce]65 </sect2>
[6370fa6]66
[fcc02767]67 <sect2 role="content">
68 <title/>
69 <para>Details on this package are located in
70 <xref linkend="contents-m4" role="."/></para>
[81fd230]71
[bdea25ce]72 </sect2>
73
74</sect1>
Note: See TracBrowser for help on using the repository browser.