patch-netem_Makefile 829 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-02-25 19:59:34.000000000 +0100
  3. @@ -1,14 +1,12 @@
  4. DISTGEN = maketable normal pareto paretonormal
  5. DISTDATA = normal.dist pareto.dist paretonormal.dist experimental.dist
  6. -HOSTCC ?= $(CC)
  7. -CCOPTS = $(CBUILD_CFLAGS)
  8. LDLIBS += -lm
  9. all: $(DISTGEN) $(DISTDATA)
  10. $(DISTGEN):
  11. - $(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm
  12. + $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) -I../include -o $@ $@.c -lm
  13. %.dist: %
  14. ./$* > $@
  15. @@ -17,7 +15,7 @@ experimental.dist: maketable experimenta
  16. ./maketable experimental.dat > experimental.dist
  17. stats: stats.c
  18. - $(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm
  19. + $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) -I../include -o $@ $@.c -lm
  20. install: all
  21. mkdir -p $(DESTDIR)$(LIBDIR)/tc