Quote:
Originally posted by CroMagnon
I'm surprise the LFS instructions don't cover this (haven't read them lately), but I liked to create a script in my home directory called "lfs" that took care of all the setup I needed (running the chroot command, setting variables and so on). All you need to do is add the command 'export CFLAGS=blablabla' to a script like that, or to your ~/.bashrc if you don't mind it always being set (if you're about to switch to your LFS system, this might be the case).
Good luck!
|
Thanks. I managed to finish up my LFS system, using the temporary export command.
About the ~/.bashrc, I don't have this file. I have tried to create it and enter in:
export CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
But when I
echo $CLFAGS I get no result
I want these settings to be permanent, I don't want to manually export CFLAGS every time I open up a shell...
EDIT: never mind. I just added the export commands to /etc/profile Thanks for your help!