Page 1 of 1

[GUIDE] The Bleeding Edge

Posted: 08 May 2011, 18:56
by 82issa
This article has been moved to the main site, please go here to read it.

Please continue discussing this article on this thread.

Re: [GUIDE] The Bleeding Edge

Posted: 08 May 2011, 21:48
by fanthom
great HOWTO 82issa :)

just one thing:
from my experience it's better to use
CFLAGS="-Os fPIC -pipe -fomit-frame-pointer" ./configure --prefix=/usr
and then
make && make install DESTDIR=/mnt/sda6/nano-os/
as when you do
--prefix=/mnt/sda6/nano-o3
then other apps which may depend on your compiled program will be looking for it's lib in /mnt/sda6/nano-o3/lib and not /usr/lib.

Re: [GUIDE] The Bleeding Edge

Posted: 08 May 2011, 23:31
by 82issa
That is how I normally do it. But I was looking over the INSTALL file and figured I would go inline with the documentation. Also it states in the documentation that the default prefix if not defined is /usr/local. Anyways not all source compiles using the same instruction. I know this, you know this, It is just a jumping board for those who are not to familiar with the process. And we both know that compounding instructions work just fine. Just trying to make it simple for others who are not familiar with this to understand. I have never run into this problem that you state in your last line. I would build fresh system by ROOT=/mnt/sdb2/testsystem/ emerge system under gentoo. Most of the time an application looks for the libs in relation to itself ../../lib. They rareley cary the full pathname, that is just bad programming practice.

Re: [GUIDE] The Bleeding Edge

Posted: 09 May 2011, 13:02
by Ahau
Yes, great job, 82issa! You've explained some of the compile flags that I didn't really understand before.

I'll get this up on the main site.