summaryrefslogtreecommitdiffstats
path: root/patches/iproute2-2.6.29-1/remove_arpd.diff
blob: 185f66eee5afb28ecaa1bcca48b0df65ed9554c2 (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
Subject: Make the buildsystem be gracious to us.

Signed-off-by: Juergen Beisert juergen@kreuzholzen.de

---
 Makefile      |    2 +-
 misc/Makefile |    6 +++++-
 2 files changed, 6 insertions(+), 2 deletions(-)

Index: misc/Makefile
===================================================================
--- misc/Makefile.orig
+++ misc/Makefile
@@ -1,10 +1,14 @@
 SSOBJ=ss.o ssfilter.o
 LNSTATOBJ=lnstat.o lnstat_util.o
 
-TARGETS=ss nstat ifstat rtacct arpd lnstat
+TARGETS=ss nstat ifstat rtacct lnstat
 
 include ../Config
 
+ifdef BUILD_ARPD
+TARGETS += arpd
+endif
+
 all: $(TARGETS)
 
 ss: $(SSOBJ) $(LIBUTIL)
Index: Makefile
===================================================================
--- Makefile.orig
+++ Makefile
@@ -23,7 +23,7 @@ ADDLIB+=ipx_ntop.o ipx_pton.o
 CC = gcc
 HOSTCC = gcc
 CCOPTS = -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall
-CFLAGS = $(CCOPTS) -I../include $(DEFINES)
+CFLAGS = $(CROSS_CPPFLAGS) $(CCOPTS) -I../include $(DEFINES)
 YACCFLAGS = -d -t -v
 
 LDLIBS += -L../lib -lnetlink -lutil