Dotychczas moje flagi wyglądały tak:gcc-4.2.0 or newer
If you are using gcc-4.2.0 or newer it is easiest and probably best to just use:
-march=native or -mtune=native.
E.g.:
32-bit
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
Code: Select all
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -Os -pipe -fomit-frame-pointer -ftracer -ftree-vectorize"
CXXFLAGS="-march=athlon-xp -Os -pipe"

