Don't specify CPU architecture in GCCFLAGS.
Make sure everywhere CC and CXX are used, so is CFLAGS or CXXFLAGS respectively.