MTD 248-645A Bedienungsanleitung Seite 54

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 347
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 53
Linux From Scratch - Version 7.0
34
During the second pass of Binutils, we are able to utilize the --with-lib-path configure switch to control ld's
library search path. From this point onwards, the core toolchain is self-contained and self-hosted. The remainder of
the Chapter 5 packages all build against the new Glibc in /tools.
Upon entering the chroot environment in Chapter 6, the first major package to be installed is Glibc, due to its self-
sufficient nature mentioned above. Once this Glibc is installed into /usr, we will perform a quick changeover of the
toolchain defaults, and then proceed in building the rest of the target LFS system.
5.3. General Compilation Instructions
When building packages there are several assumptions made within the instructions:
Several of the packages are patched before compilation, but only when the patch is needed to circumvent a
problem. A patch is often needed in both this and the next chapter, but sometimes in only one or the other.
Therefore, do not be concerned if instructions for a downloaded patch seem to be missing. Warning messages
about offset or fuzz may also be encountered when applying a patch. Do not worry about these warnings, as the
patch was still successfully applied.
During the compilation of most packages, there will be several warnings that scroll by on the screen. These
are normal and can safely be ignored. These warnings are as they appear—warnings about deprecated, but
not invalid, use of the C or C++ syntax. C standards change fairly often, and some packages still use the older
standard. This is not a problem, but does prompt the warning.
Check one last time that the LFS environment variable is set up properly:
echo $LFS
Make sure the output shows the path to the LFS partition's mount point, which is /mnt/lfs, using our
example.
Finally, two last important items must be emphasized:
Important
The build instructions assume that the bash shell is in use.
Important
To re-emphasize the build process:
1. Place all the sources and patches in a directory that will be accessible from the chroot environment
such as /mnt/lfs/sources/. Do not put sources in /mnt/lfs/tools/.
2. Change to the sources directory.
3. For each package:
a. Using the tar program, extract the package to be built. In Chapter 5, ensure you are the lfs user
when extracting the package.
b. Change to the directory created when the package was extracted.
c. Follow the book's instructions for building the package.
d. Change back to the sources directory.
e. Delete the extracted source directory and any <package>-build directories that were created
in the build process unless instructed otherwise.
Seitenansicht 53
1 2 ... 49 50 51 52 53 54 55 56 57 58 59 ... 346 347

Kommentare zu diesen Handbüchern

Keine Kommentare