From 5cf9d3cf66dd32bd5a348e0e9805c5d7a3c34573 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 1 Jul 2009 21:15:03 -0400 Subject: ubi-utils: fix compilation errors when using CPPFLAGS The CPPFLAGS in the env changes how make initializes/appends CPPFLAGS in sub-makes. This causes the old ubi utils to find the newer headers at ubi-utils/include/ before the ubi-utils/old-utils/inc/. Signed-off-by: Mike Frysinger Signed-off-by: Artem Bityutskiy --- ubi-utils/old-utils/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ubi-utils') diff --git a/ubi-utils/old-utils/Makefile b/ubi-utils/old-utils/Makefile index 5d20592..acdb31a 100644 --- a/ubi-utils/old-utils/Makefile +++ b/ubi-utils/old-utils/Makefile @@ -5,8 +5,8 @@ KERNELHDR := ../../include CFLAGS ?= -O2 -g -Werror -CPPFLAGS += -I./inc -I./src -I$(KERNELHDR) \ - -std=gnu99 -DPACKAGE_VERSION=\"1.0\" +CPPFLAGS := -I./inc -I./src -I$(KERNELHDR) \ + -std=gnu99 -DPACKAGE_VERSION=\"1.0\" $(CPPFLAGS) PERLPROGS = mkpfi ubicrc32.pl -- cgit v1.2.3