Changeset afc6823
- Timestamp:
- 04/20/2020 12:50:49 PM (4 years ago)
- Branches:
- 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
- Children:
- 7fd302c
- Parents:
- 0b403eb3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter01/changelog.xml
r0b403eb3 rafc6823 44 44 --> 45 45 <listitem> 46 <para>2020-04-20</para> 47 <itemizedlist> 48 <listitem> 49 <para>[pierre] - Change -isystem to -idirafter in "Adjusting the 50 toolchain". This allows to search g++ private headers before 51 the public ones, which is the normal search order, with the 52 drawback that it includes the headers in /tools if they exist 53 in both /usr and /tools. Fix most of 54 <ulink url="&lfs-ticket-root;4641">#4641</ulink>.</para> 55 </listitem> 56 </itemizedlist> 57 </listitem> 58 59 <listitem> 46 60 <para>2020-04-19</para> 47 61 <itemizedlist> -
chapter06/adjusting.xml
r0b403eb3 rafc6823 25 25 ln -sv /tools/bin/ld /tools/$(uname -m)-pc-linux-gnu/bin/ld</userinput></screen> 26 26 27 <para>Next, amend the GCC specs file so that it points to the new 28 dynamic linker. Simply deleting all instances of <quote>/tools</quote> should 29 leave us with the correct path to the dynamic linker. Also adjust the specs file 30 so that GCC knows where to find the correct headers and Glibc start files. 27 <para>the next command amends the GCC specs file to achieve three goals: 28 first point GCC to the new dynamic linker. Simply deleting all instances of 29 <quote>/tools</quote> should leave us with the correct path to the dynamic 30 linker. Second, let GCC know where to find the Glibc start files. Third, 31 add the /usr/include directory at the end of the default search path, so 32 that header files added in chapter 6 are found. 31 33 A <command>sed</command> command accomplishes this:</para> 32 34 33 35 <screen><userinput>gcc -dumpspecs | sed -e 's@/tools@@g' \ 34 36 -e '/\*startfile_prefix_spec:/{n;s@.*@/usr/lib/ @}' \ 35 -e '/\*cpp:/{n;s@$@ -i system/usr/include@}' > \37 -e '/\*cpp:/{n;s@$@ -idirafter /usr/include@}' > \ 36 38 `dirname $(gcc --print-libgcc-file-name)`/specs</userinput></screen> 37 39 … … 73 75 files:</para> 74 76 75 <screen><userinput>grep -B 1'^ /usr/include' dummy.log</userinput></screen>77 <screen><userinput>grep -B4 '^ /usr/include' dummy.log</userinput></screen> 76 78 77 79 <para os="h">This command should return the following output:</para> 78 80 79 81 <screen><computeroutput>#include <...> search starts here: 82 /tools/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/include 83 /tools/include 84 /tools/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/include-fixed 80 85 /usr/include</computeroutput></screen> 86 87 <note><para>On a 32 bit system, x86_64 is replaced with i686.</para></note> 81 88 82 89 <para os="i">Next, verify that the new linker is being used with the correct search paths:</para> -
general.ent
r0b403eb3 rafc6823 1 <!ENTITY version "SVN-202004 19">1 <!ENTITY version "SVN-20200420"> 2 2 <!ENTITY short-version "svn"> <!-- Used below in &blfs-book; 3 3 Change to x.y for release but not -rc releases --> 4 4 <!ENTITY generic-version "development"> <!-- Use "development" or "x.y[-pre{x}]" --> 5 5 6 <!ENTITY versiond "202004 19-systemd">6 <!ENTITY versiond "20200420-systemd"> 7 7 <!ENTITY short-versiond "systemd"> 8 8 <!ENTITY generic-versiond "systemd"> 9 9 10 <!ENTITY releasedate "April 19th, 2020">10 <!ENTITY releasedate "April 20th, 2020"> 11 11 12 12 <!ENTITY copyrightdate "1999-2020"><!-- jhalfs needs a literal dash, not – -->
Note:
See TracChangeset
for help on using the changeset viewer.