Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I need some help to avoid screwing up, chapter five states:
The Binutils documentation recommends building Binutils in a dedicated build directory:
mkdir -v build
cd build
But i have no clue on where to build that directory. Should the build directory be inside the source directory , or should it be in the tools directory , or just somewhere on the $LFS partition, or on the host? I have no clue. I assume not in the tools directory , cause it's a temporary dir that will be deleted afterwards.
The book does not mention where to make te "build" directory, and i cannot find it in faq's nor mailing lists so please help me out here
so well i wanna know where to run the mkdir- v build? Thanks
yes i am sure i am ready to to this.
English is not my native language. ok so "mkdir build" in the unpacked binutils dir. ok got it. thanks a lot.
I did read some articles that state that is not even nessesary to use a seperate build dir for binutils. but since in wanna follow the book, hence my question . Now i understand 5.3 in relation to what has to come
Before the specific builds in chapter 5, there is a general section on builds. It's called (surprise, surprise!) General Compilation Instructions. Read it carefully. It explains that all builds start with the same set of operations which are listed in the second of the two boxes labelled "Important!".
All specific build sections start by assuming that you have carried out these initial steps: i.e. you have untarred the package and cd'd to the resultant directory. Only then should you carry out the specific build operations for the package.
This will ensure that any extra directories you are told to create will go into the correct locations.
Ok, thank you everyone for repleying.
Ik could not see that de "general compilation instructions " and sections labled as importandd could be interpreted as beëing "initial steps" ( due to my english that is not context sensitive enough ), that is why i was confused.
thank you all for the clarification. I understand perfect now.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.