summaryrefslogtreecommitdiff
path: root/packages/ksymoops/ksymoops-2.4.9/flags.patch
blob: 27e4dda92397204a7baac0273213a3f2bba5e237 (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
47
48
49
50
51
52
53
54
55

#
# Patch managed by http://www.holgerschurig.de/patcher.html
#

--- ksymoops-2.4.9/Makefile~flags
+++ ksymoops-2.4.9/Makefile
@@ -57,36 +57,36 @@
 PROGS := ksymoops
 
 CC := gcc
-CFLAGS += -Dlinux \
-	 -Wall \
+CFLAGS = "-Wall \
 	 -Wno-conversion \
 	 -Waggregate-return \
 	 -Wstrict-prototypes \
 	 -Wmissing-prototypes \
+	 $(DEBUG)"
+override CFLAGS += -Dlinux \
 	 -DINSTALL_PREFIX="\"$(INSTALL_PREFIX)\"" \
-	 -DCROSS="\"$(CROSS)\"" \
-	 $(DEBUG)
+	 -DCROSS="\"$(CROSS)\""
 
 ifneq ($(DEF_VMLINUX),)
-	CFLAGS += -DDEF_VMLINUX=$(DEF_VMLINUX)
+	override CFLAGS += -DDEF_VMLINUX=$(DEF_VMLINUX)
 endif
 ifneq ($(DEF_KSYMS),)
-	CFLAGS += -DDEF_KSYMS=$(DEF_KSYMS)
+	override CFLAGS += -DDEF_KSYMS=$(DEF_KSYMS)
 endif
 ifneq ($(DEF_LSMOD),)
-	CFLAGS += -DDEF_LSMOD=$(DEF_LSMOD)
+	override CFLAGS += -DDEF_LSMOD=$(DEF_LSMOD)
 endif
 ifneq ($(DEF_OBJECTS),)
-	CFLAGS += -DDEF_OBJECTS=$(DEF_OBJECTS)
+	override CFLAGS += -DDEF_OBJECTS=$(DEF_OBJECTS)
 endif
 ifneq ($(DEF_MAP),)
-	CFLAGS += -DDEF_MAP=$(DEF_MAP)
+	override CFLAGS += -DDEF_MAP=$(DEF_MAP)
 endif
 ifneq ($(DEF_TARGET),)
-	CFLAGS += -DDEF_TARGET=$(DEF_TARGET)
+	override CFLAGS += -DDEF_TARGET=$(DEF_TARGET)
 endif
 ifneq ($(DEF_ARCH),)
-	CFLAGS += -DDEF_ARCH=$(DEF_ARCH)
+	override CFLAGS += -DDEF_ARCH=$(DEF_ARCH)
 endif
 ifneq ($(BFD_PREFIX),)
 	CFLAGS += -I$(BFD_PREFIX)/include