%general-entities; ]> Coreutils-&coreutils-version; Coreutils temporary system Installation of Coreutils Coreutils has an issue where UTILS_OPEN_MAX does not get defined when cross-compiling. So we define it: echo "utils_cv_sys_open_max=1024" >> config.cache Prepare Coreutils for compilation: ./configure --prefix=/tools --cache-file=config.cache \ --build=${LFS_HOST} --host=${LFS_TARGET} The meaning of the configure options: DEFAULT_POSIX2_VERSION=199209 This package has an issue when compiled against versions of Glibc later than 2.3.2. Some of the Coreutils utilities (such as head, tail, and sort) will reject their traditional syntax, a syntax that has been in use for approximately 30 years. This old syntax is so pervasive that compatibility should be preserved until the many places where it is used can be updated. Backwards compatibility is achieved by setting the DEFAULT_POSIX2_VERSION environment variable to 199209 in the above command. If you do not want Coreutils to be backwards compatible with the traditional syntax, then omit setting the DEFAULT_POSIX2_VERSION environment variable. It is important to remember that doing so will have consequences, including the need to patch the many packages that still use the old syntax. Therefore, it is recommended that the instructions be followed exactly as given above. --cache-file=config.cache This do ... Compile the package: make Install the package: make install <para>Details on this package are located in <xref linkend="contents-coreutils" role="."/></para> </sect2> </sect1>