#2414: Evaluate Optimization hint
-----------------------------------------+----------------------------------
Reporter: ger...@… | Owner: lfs-b...@…
Type: task | Status: new
Priority: normal | Milestone: 7.0
Component: Book | Version: SVN
Severity: normal | Keywords:
-----------------------------------------+----------------------------------
Comment(by bdu...@…):
I took a look at this hint with the patch and think a few things are left
out.
First, it does not mention that if you set CFLAGS or CXXFLAGS, it may
override some other optimizations that the original package developer pot
it. For example, looking at the parted package, the developer has:
CFLAGS = -g -O2 -Werror
If you override this, you will lose the -Werror option. This isn't too
bad, but you may also lose some needed options in some packages like -fPIC
or other code generation options.
The hint should strongly recommend setting the CFLAGS and CXXFLAGS for
individual packages and *not* leave then set generically.
Second, since LFS now supports a 'pure 64-bit' build, the hint does not
mention some important architectures that are directly supported such as
core2 or i686.
Overall, the issue of optimization is very complex. It is far more
complex than this short hint implies. I think as it stands now, the hint
will get more users into trouble than it will help.
--
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/2414#comment:2>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page