Follow the patch from Sam Ravnborg <[EMAIL PROTECTED]>, The variable AFLAGS is a wellknown variable and the usage by kbuild may result in unexpected behaviour. On top of that several people over time has asked for a way to pass in additional flags to gcc.
This patch replace use of AFLAGS with KBUILD_AFLAGS all over the tree. Signed-off-by: Thomas Chou <[EMAIL PROTECTED]> --- linux-2.6.x/arch/nios2nommu/Makefile | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-2.6.x/arch/nios2nommu/Makefile b/linux-2.6.x/arch/nios2nommu/Makefile index 114ef77..fe0afb7 100644 --- a/linux-2.6.x/arch/nios2nommu/Makefile +++ b/linux-2.6.x/arch/nios2nommu/Makefile @@ -73,8 +73,8 @@ KBUILD_CFLAGS += -DUTS_SYSNAME=\"uClinux\" CFLAGS_GCC_INC := $(shell $(CC) -print-file-name=include) KBUILD_CFLAGS += -I$(CFLAGS_GCC_INC) -AFLAGS += -DNO_MM -g -#AFLAGS += -DNO_MM -g -save-temps +KBUILD_AFLAGS += -DNO_MM -g +#KBUILD_AFLAGS += -DNO_MM -g -save-temps # vic - add this to get name of nios gcc library LIBGCC_CFLAGS = $(if $(CONFIG_NIOS2_HW_MUL_OFF),-mno-hw-mul) -- 1.5.3.3 _______________________________________________ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev