Originally Posted by
whitefort
I have absolutely no idea what you just said!
So little time, so much to learn...
Arch certainly seems to be a good 'learning' distro. I'm having a lot of fun with it (well, I'm having fun during the moments that I'm not terrified that I've totally messed up my system...
(and my computer's system too!
)
Thanks!
Compiler flags are for building a package from source for different architectures, or with different optimizations:
http://wiki.archlinux.org/index.php/Makepkg.conf
I would show you this Gentoo page, but their site is down: http://gentoo-wiki.com/CFLAGS#-Os
Here is a list of C[XX]FLAGS and different optimizations: http://gcc.gnu.org/onlinedocs/gcc/i3...002d64-Options
This is what the Arch and Gentoo page say to use for safe C[XX]FLAGS for an AMD Turion 64x2 (I think the Gentoo page uses "-msse3"):
Code:
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CXXFLAGS="${CFLAGS}"
and the MAKEFLAGE of:
..... but since my Turion 64x2 TL-60 is newer, and has SSE3 available: http://en.wikipedia.org/wiki/List_of...22_.2890_nm.29
.... I write in the "-msse3" option to enable it. I also use "-Os" instead of "-O2".
this is what I use in my /etc/makepkg.conf:
Code:
CARCH="x86_64"
CHOST="x86_64-unknown-linux-gnu"
#-- Exclusive: will only run on -march=x86-64
# -march (or -mcpu) builds exclusively for an architecture
# -mtune optimizes for an architecture, but builds for whole processor family
CFLAGS="-march=athlon64 -msse3 -Os -pipe"
CXXFLAGS="-march=athlon64 -msse3 -Os -pipe"
#-- Make Flags: change this for DistCC/SMP systems
MAKEFLAGS="-j3"
I think these are pretty safe to use, I wish I knew more about the other settings available..... I'm still learning a lot about kernels and building a system from source.
Bookmarks