Changeset 26ae89a for chapter06/systemd.xml
- Timestamp:
- 01/02/2016 12:00:54 PM (8 years ago)
- Branches:
- 7.9-systemd
- Children:
- ee46f60
- Parents:
- 6e13139
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/systemd.xml
r6e13139 r26ae89a 41 41 <title>Installation of systemd</title> 42 42 43 <para>First, create a file to allow systemd to build when using Util-Linux 43 <para>First, fix a build error when using Util-Linux built in 44 Chapter 5:</para> 45 46 <screen><userinput remap="pre">sed -i "s:blkid/::" $(grep -rl "blkid/blkid.h")</userinput></screen> 47 48 <para>Apply the following patch so that compat 49 <command>pkg-config</command> files get installed without installing compat 50 libs which are useless on LFS:</para> 51 52 <screen><userinput remap="pre">patch -Np1 -i ../&systemd-compat-patch;</userinput></screen> 53 54 <para>Disable two tests that always fail:</para> 55 56 <screen><userinput remap="pre">sed -e 's:test/udev-test.pl ::g' \ 57 -e 's:test-copy$(EXEEXT) ::g' \ 58 -i Makefile.in</userinput></screen> 59 60 <para>Rebuild generated files after modifying Makefile.am and 61 Makefile.in:</para> 62 63 <screen><userinput remap="pre">autoreconf -fi</userinput></screen> 64 65 <para>Create a file to allow systemd to build when using Util-Linux 44 66 built in Chapter 5, to disable LTO by default, and to build without 45 67 xlstproc:</para> … … 59 81 EOF</userinput></screen> 60 82 61 <para>LTO is disabled by default because it causes <command>systemd</command> 62 and other auxiliary programs to link to <filename 63 class="libraryfile">libgcc_s.so</filename>, slows the build down and makes the 64 compiled code larger.</para> 65 66 <para>Additionally, fix a build error when using Util-Linux built in 67 Chapter 5:</para> 68 69 <screen><userinput remap="pre">sed -i "s:blkid/::" $(grep -rl "blkid/blkid.h")</userinput></screen> 70 71 <para>Apply the following patch so that compat <command>pkg-config</command> files 72 get installed without installing compat libs which are useless on LFS:</para> 73 74 <screen><userinput remap="pre">patch -Np1 -i ../&systemd-compat-patch;</userinput></screen> 75 76 <para>Disable two tests that always fail:</para> 77 78 <screen><userinput remap="pre">sed -e 's:test/udev-test.pl ::g' \ 79 -e 's:test-copy$(EXEEXT) ::g' \ 80 -i Makefile.in</userinput></screen> 83 <para>LTO is disabled by default because it causes 84 <command>systemd</command> and other auxiliary programs to link to 85 <filename class="libraryfile">libgcc_s.so</filename>, slows the build down 86 and makes the compiled code larger.</para> 81 87 82 88 <para>Prepare systemd for compilation:</para>
Note:
See TracChangeset
for help on using the changeset viewer.