summaryrefslogtreecommitdiff
path: root/ubi-utils
diff options
context:
space:
mode:
authorMike Frysinger <vapier.adi@gmail.com>2009-07-01 21:15:03 -0400
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-07-03 12:31:41 +0300
commit5cf9d3cf66dd32bd5a348e0e9805c5d7a3c34573 (patch)
tree9cf75a28639aac7ddcbd73a2eecbfcb4ffef8906 /ubi-utils
parent22494a8d105936785af53235b088fa38112128fc (diff)
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 <vapier.adi@gmail.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils')
-rw-r--r--ubi-utils/old-utils/Makefile4
1 files changed, 2 insertions, 2 deletions
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