source: BOOK/temp-system/multilib/coreutils.xml@ d9ed6c3

clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since d9ed6c3 was 01672b8, checked in by Chris Staub <chris@…>, 12 years ago

Do not use sed -i in temp-system as the host cannot be guaranteed to have GNU sed

  • Property mode set to 100644
File size: 3.5 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-coreutils" role="wrap">
9 <?dbhtml filename="coreutils.html"?>
10
11 <title>Coreutils-&coreutils-version;</title>
12
13 <indexterm zone="ch-temp-system-coreutils">
14 <primary sortas="a-Coreutils">Coreutils</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/coreutils.xml"
20 xpointer="xpointer(//*[@role='package'])"/>
21
22 <sect2 role="installation">
23 <title>Installation of Coreutils</title>
24
25 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
26 href="../common/coreutils.xml"
27 xpointer="xpointer(//*[@os='aa'])"/>
28
29 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
30 href="../common/coreutils.xml"
31 xpointer="xpointer(//*[@os='ab'])"/>
32
33 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
34 href="../common/coreutils.xml"
35 xpointer="xpointer(//*[@os='ba'])"/>
36
37 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
38 href="../common/coreutils.xml"
39 xpointer="xpointer(//*[@os='bb'])"/>
40
41 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
42 href="../common/coreutils.xml"
43 xpointer="xpointer(//*[@os='bd'])"/>
44
45<screen os="be"><userinput>CC="${CC} ${BUILD64}" ./configure --prefix=/tools \
46 --build=${CLFS_HOST} --host=${CLFS_TARGET} \
47 --enable-install-program=hostname --cache-file=config.cache</userinput></screen>
48
49<!--- Hack for coreutils to build for target executables which can't be ran with the host. -->
50
51 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
52 href="../common/coreutils.xml"
53 xpointer="xpointer(//*[@os='h1'])"/>
54
55<screen os="h2"><userinput>cp -v Makefile{,.orig}
56sed '/src_make_prime_list/d' Makefile.orig > Makefile
57depbase=`echo src/make-prime-list.o | sed 's|[^/]*$|.deps/&amp;|;s|\.o$||'`;\
58 gcc -m64 -std=gnu99 -I. -I./lib -Ilib -I./lib -Isrc -I./src \
59 -fdiagnostics-show-option -funit-at-a-time -g -O2 -MT \
60 src/make-prime-list.o -MD -MP -MF $depbase.Tpo -c -o src/make-prime-list.o \
61 src/make-prime-list.c &amp;&amp;
62mv -f $depbase.Tpo $depbase.Po
63gcc -m64 -std=gnu99 -fdiagnostics-show-option -funit-at-a-time -g -O2 \
64 -Wl,--as-needed -o src/make-prime-list src/make-prime-list.o
65</userinput></screen>
66
67 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
68 href="../common/coreutils.xml"
69 xpointer="xpointer(//*[@os='h3'])"/>
70
71 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
72 href="../common/coreutils.xml"
73 xpointer="xpointer(//*[@os='h4'])"/>
74
75<!-- end hack -->
76
77 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
78 href="../common/coreutils.xml"
79 xpointer="xpointer(//*[@os='bf'])"/>
80
81 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
82 href="../common/coreutils.xml"
83 xpointer="xpointer(//*[@os='bg'])"/>
84
85 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
86 href="../common/coreutils.xml"
87 xpointer="xpointer(//*[@os='bh'])"/>
88
89 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
90 href="../common/coreutils.xml"
91 xpointer="xpointer(//*[@os='bi'])"/>
92
93 </sect2>
94
95 <sect2 role="content">
96 <title/>
97
98 <para>Details on this package are located in <xref
99 linkend="contents-coreutils" role="."/></para>
100
101 </sect2>
102
103</sect1>
Note: See TracBrowser for help on using the repository browser.