patch-netem_Makefile 813 B

123456789101112131415161718192021222324252627
  1. --- iproute2-2.6.29-1.orig/netem/Makefile 2009-03-24 23:40:54.000000000 +0100
  2. +++ iproute2-2.6.29-1/netem/Makefile 2009-12-11 16:39:15.000000000 +0100
  3. @@ -2,13 +2,13 @@ DISTGEN = maketable normal pareto pareto
  4. DISTDATA = normal.dist pareto.dist paretonormal.dist experimental.dist
  5. HOSTCC ?= $(CC)
  6. -CCOPTS = $(CBUILD_CFLAGS)
  7. +HOSTCFLAGS ?=
  8. LDLIBS += -lm
  9. all: $(DISTGEN) $(DISTDATA)
  10. $(DISTGEN):
  11. - $(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm
  12. + $(HOSTCC) $(HOSTCFLAGS) -I../include -o $@ $@.c -lm
  13. %.dist: %
  14. ./$* > $@
  15. @@ -17,7 +17,7 @@ experimental.dist: maketable experimenta
  16. ./maketable experimental.dat > experimental.dist
  17. stats: stats.c
  18. - $(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm
  19. + $(HOSTCC) $(HOSTCFLAGS) -I../include -o $@ $@.c -lm
  20. install: all
  21. mkdir -p $(DESTDIR)/lib/tc