You are not logged in.
I know the Linux kernel is quite tight to the CFLAGS that can be used to build it, but I'd like to know if there is a way to get to know which compilation flags are being used in a build and how/where to modify them.
I'm building a custom kernel selecting Core2 as the targeted processor type, but SSE+ instructions are not being enabled, so -march=core2 is not being used.
Last edited by MickST (2010-05-29 00:43:37)
Offline
Yes, it uses its internal compilation flags, and it's better not to touch them a lot.
From what I've seen the actual march option is set in a file inside of the arch directory. For the Core2 selection the march is set to i686 and mtune to core2. Setting march to core2 there would make nothing really as SSE and cia are explicitly unset in the makefile of that directory.
Thank you for the answer though.
Offline