01-netperf-2.3pl1-openwrt.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. --- netperf-2.3pl1.orig/makefile 2004-09-21 23:33:40.000000000 +0200
  2. +++ netperf-2.3pl1/makefile 2005-12-30 15:35:08.924238576 +0100
  3. @@ -15,8 +15,7 @@
  4. # for the rest of the world, it is probably better to put the binaries
  5. # in /usr/local/netperf or /opt/netperf
  6. #
  7. -#NETPERF_HOME = /usr/local/netperf
  8. -NETPERF_HOME = /opt/netperf
  9. +NETPERF_HOME = $(TARGET_NETPERF_HOME)
  10. # The compiler on your system might be somewhere else, and/or have
  11. # a different name.
  12. @@ -40,7 +39,7 @@
  13. # You may safely ignore that warning.
  14. #
  15. -CC = cc
  16. +CC = $(TARGET_CC)
  17. # Adding flags to CFLAGS enables some non-mainline features. For
  18. # more information, please consult the source code.
  19. @@ -113,7 +112,7 @@
  20. # netserver via the netperf command line with -T
  21. LOG_FILE=DEBUG_LOG_FILE="\"/tmp/netperf.debug\""
  22. -CFLAGS = -O -D$(LOG_FILE) -DNEED_MAKEFILE_EDIT
  23. +CFLAGS = -D$(LOG_FILE) $(TARGET_CFLAGS)
  24. # Some platforms, and some options, require additional libraries.
  25. # you can add to the "LIBS =" line to accomplish this. if you find
  26. @@ -136,7 +135,7 @@
  27. # -lresolv - required for -DDO_DNS on RedHat 7.1
  28. # -lsocket -lbind - required for Zeta OS
  29. -LIBS= -lm
  30. +LIBS= -lm $(TARGET_LIBS)
  31. # ---------------------------------------------------------------
  32. # it should not be the case that anything below this line needs to