summaryrefslogtreecommitdiff
path: root/package/iproute2/patches/patch-netem_Makefile
blob: b0aa792f7f0bbfb8a83ad5132855bba55b5b37e9 (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
--- iproute2-2.6.37.orig/netem/Makefile	2011-01-07 18:54:30.000000000 +0100
+++ iproute2-2.6.37/netem/Makefile	2011-01-18 02:19:41.386925447 +0100
@@ -2,13 +2,13 @@ DISTGEN = maketable normal pareto pareto
 DISTDATA = normal.dist pareto.dist paretonormal.dist experimental.dist
 
 HOSTCC ?= $(CC)
-CCOPTS  = $(CBUILD_CFLAGS)
+HOSTCFLAGS ?= 
 LDLIBS += -lm 
 
 all: $(DISTGEN) $(DISTDATA)
 
 $(DISTGEN):
-	$(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm
+	$(HOSTCC) $(HOSTCFLAGS) -I../include -o $@ $@.c -lm
 
 %.dist: %
 	./$* > $@
@@ -17,7 +17,7 @@ experimental.dist: maketable experimenta
 	./maketable experimental.dat > experimental.dist
 
 stats: stats.c
-	$(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm
+	$(HOSTCC) $(HOSTCFLAGS) -I../include -o $@ $@.c -lm
 
 install: all
 	mkdir -p $(DESTDIR)$(LIBDIR)/tc