summaryrefslogtreecommitdiff
blob: ecbb958d434bb787c4f5b94660a79a73ef586c0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
From 3f4b0661b63efaca78791612ce9be84271d784a5 Mon Sep 17 00:00:00 2001
From: Mike Frysinger <vapier@gentoo.org>
Date: Mon, 5 Nov 2012 02:08:27 -0500
Subject: [PATCH] fix build build system

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 utils/Makefile | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/utils/Makefile b/utils/Makefile
index 710ebbf..26aea6b 100644
--- a/utils/Makefile
+++ b/utils/Makefile
@@ -16,14 +16,13 @@
 
 #KERNELDIR = /usr/src/kernel-headers-2.4.18
 
-CFLAGS =    -O2 -Wall -DCONFIG_YAFFS_UTIL
+CFLAGS+=    -Wall -DCONFIG_YAFFS_UTIL -DCONFIG_YAFFS_DEFINES_TYPES
 CFLAGS+=   -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-declarations
 CFLAGS+=   -Wmissing-prototypes -Wredundant-decls -Wnested-externs -Winline
 
 ## Change if you are using a cross-compiler
 MAKETOOLS = 
 
-CC=$(MAKETOOLS)gcc
 
 COMMON_BASE_C_LINKS = yaffs_ecc.c
 COMMON_BASE_LINKS = $(COMMON_BASE_C_LINKS) yaffs_ecc.h yaffs_guts.h yaffs_packedtags2.h yaffs_trace.h
@@ -57,10 +56,10 @@ $(COMMONOBJS) $(MKYAFFSIMAGEOBJS) $(MKYAFFS2IMAGEOBJS) : %.o: %.c
 	$(CC) -c $(CFLAGS) $< -o $@
 
 mkyaffsimage: $(MKYAFFSIMAGEOBJS) $(COMMONOBJS)
-	$(CC) -o $@  $^
+	$(CC) $(CFLAGS) -o $@  $^ $(LDFLAGS)
 
 mkyaffs2image: $(MKYAFFS2IMAGEOBJS) $(COMMONOBJS)
-	$(CC) -o $@ $^
+	$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
 
 
 clean:
-- 
1.7.12.4