diff options
author | Nicolas Thill <nico@openwrt.org> | 2006-01-10 13:45:36 +0000 |
---|---|---|
committer | Nicolas Thill <nico@openwrt.org> | 2006-01-10 13:45:36 +0000 |
commit | c1be0f79d47db7e72ff80140d7dde7fbe36129fb (patch) | |
tree | 79c38dd3755ae0bad3b7e517692f3854238df9ac /package/netperf/patches | |
parent | 5c1ce3ba44b369d09f26ac42dcc83785fd5adadb (diff) | |
download | upstream-c1be0f79d47db7e72ff80140d7dde7fbe36129fb.tar.gz upstream-c1be0f79d47db7e72ff80140d7dde7fbe36129fb.tar.bz2 upstream-c1be0f79d47db7e72ff80140d7dde7fbe36129fb.zip |
add netperf package (thanks to Janos)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2870 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/netperf/patches')
-rw-r--r-- | package/netperf/patches/01-netperf-2.3pl1-openwrt.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/package/netperf/patches/01-netperf-2.3pl1-openwrt.patch b/package/netperf/patches/01-netperf-2.3pl1-openwrt.patch new file mode 100644 index 0000000000..b83ca1167c --- /dev/null +++ b/package/netperf/patches/01-netperf-2.3pl1-openwrt.patch @@ -0,0 +1,39 @@ +--- netperf-2.3pl1.orig/makefile 2004-09-21 23:33:40.000000000 +0200 ++++ netperf-2.3pl1/makefile 2005-12-30 15:35:08.924238576 +0100 +@@ -15,8 +15,7 @@ + # for the rest of the world, it is probably better to put the binaries + # in /usr/local/netperf or /opt/netperf + # +-#NETPERF_HOME = /usr/local/netperf +-NETPERF_HOME = /opt/netperf ++NETPERF_HOME = $(TARGET_NETPERF_HOME) + + # The compiler on your system might be somewhere else, and/or have + # a different name. +@@ -40,7 +39,7 @@ + # You may safely ignore that warning. + # + +-CC = cc ++CC = $(TARGET_CC) + + # Adding flags to CFLAGS enables some non-mainline features. For + # more information, please consult the source code. +@@ -113,7 +112,7 @@ + # netserver via the netperf command line with -T + + LOG_FILE=DEBUG_LOG_FILE="\"/tmp/netperf.debug\"" +-CFLAGS = -O -D$(LOG_FILE) -DNEED_MAKEFILE_EDIT ++CFLAGS = -D$(LOG_FILE) $(TARGET_CFLAGS) + + # Some platforms, and some options, require additional libraries. + # you can add to the "LIBS =" line to accomplish this. if you find +@@ -136,7 +135,7 @@ + # -lresolv - required for -DDO_DNS on RedHat 7.1 + # -lsocket -lbind - required for Zeta OS + +-LIBS= -lm ++LIBS= -lm $(TARGET_LIBS) + + # --------------------------------------------------------------- + # it should not be the case that anything below this line needs to |