On 09/01/2015 10:32 AM, Simon Kitching wrote:
Hi,

A “–prefix=/usr” parameter is passed to most makefiles, but the book
never explains why.

AIUI, the reason is: to override the default prefix of |/usr/local|.
Many packages default to installing in “/usr/local” which is sensible as
they are assuming you are running a typical “packaged” distribution (eg
redhat/debian) and so should not mix locally-compiled binaries with
package-managed binaries. This is not the case for LFS, so overriding
prefix is usually required.

If I am right, then maybe it is worth adding this brief explanation into
the LFS book somewhere?

Regards, Simon


From Binutils Pass 1:

 --prefix=/tools

This tells the configure script to prepare to install the Binutils programs in the /tools directory.
--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to