patch-netem_Makefile 814 B

123456789101112131415161718192021222324252627
  1. --- iproute2-2.6.37.orig/netem/Makefile 2011-01-07 18:54:30.000000000 +0100
  2. +++ iproute2-2.6.37/netem/Makefile 2011-01-18 02:19:41.386925447 +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)$(LIBDIR)/tc