On Sun, Nov 25, 2012 at 11:04:01PM +0100, Pierre Labastie wrote:

> At this place in the book, everything should be independant on what is 
> on the host, shouldn't it ? librt and libpthread are both from glibc. I 
> more suspect the optimization, as pointed out by Armin. Trying again 
> without optimization and I'll let you know  (build takes much longer).
> 
> Regards,
> Pierre

 Are you sure it takes longer ?  Most packages default their CFLAGS,
CXXFLAGS to '-O2 -g' : using -O3 is *expected* to take longer.

 To be clear, don't set CFLAGS, CXXFLAGS if you want to avoid
problematic optimisations, just let the packages use their own
defaults.  Building with "CFLAGS= " and the same for CXXFLAGS will
turn off all optimisations (if a package accepts that from its
environment), but for e.g. gcc I *would* expect the resulting
compilers to be *slow*.

ĸen
-- 
das eine Mal als Tragödie, das andere Mal als Farce
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to