Found this page very useful when I had to compile some stuff for a Geode LX: http://gentoo-wiki.com/Safe_Cflags.