Vince Greg wrote:
Hello,
Thank you for all informations for the optimization.
I would use CFLAGS: -Os -s -fno-strict-aliasing but how and where in the
build I must used it?
Thanks
If you just attempt to rebuild the official LiveCD, these CFLAGS will be
used automatically. They are defined in the file vars/vars.x86, but you
can override them by creating a "Makefile.personal" file in the same
directory as the main Makefile, containing just the following lines:
CFLAGS:= -O2 -pipe
CXXFLAGS:= -O2 -pipe
(note that the example above will break the build, because the
individual package Makefiles don't add -fno-strict-aliasing
automatically when needed). To make the matters even more complicated,
there is also the "config.site" file that makes the compiler produce
i486-compatible code and disables static libraries by default.
However, if you are building your own LiveCD (not based on the official
one), why do you ask me? :) CFLAGS and CXXFLAGS are just environment
variables. The book asks you to unset them, and you are really supposed
to know how to export them and what to change in the book so that they
are set.
--
Alexander E. Patrakov
--
http://linuxfromscratch.org/mailman/listinfo/livecd
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page