1 |
>> No nothing crazy: |
2 |
>> CFLAGS="-Os -pipe -mtune=i686" |
3 |
> |
4 |
> i686? That's not amd64. You need something 64bit. Just use march=native |
5 |
> instead of mtune=i686. |
6 |
|
7 |
Wait, what! I could swear I was reading march=native just a few minutes ago. |
8 |
|
9 |
mtune=i686 on amd64 just doesn't seem right, but it should compile. |
10 |
|
11 |
# echo | gcc -dM -E - -march=native |
12 |
/usr/libexec/gcc/x86_64-pc-linux-gnu/4.5.3/cc1 -E -quiet -v - |
13 |
-D_FORTIFY_SOURCE=2 -mtune=i686 -march=x86-64 |
14 |
|
15 |
gcc sets the correct march even if you set the wrong mtune. |
16 |
|
17 |
But as Michael says, just use march=native and you should be fine. |