diff options
author | Ting Liu <b28495@freescale.com> | 2013-10-09 16:32:29 +0800 |
---|---|---|
committer | Joe MacDonald <joe@deserted.net> | 2013-10-09 09:57:21 -0400 |
commit | d79d4b340358168d7ca4b8f2837c9d09c44bd1fe (patch) | |
tree | 8edc5459b9889b5a362b3b2cdc7dd4113144d456 | |
parent | 37660c2e812996331d3c1a6e4d5dec3847ac4575 (diff) | |
download | meta-openembedded-d79d4b340358168d7ca4b8f2837c9d09c44bd1fe.tar.gz |
netperf: set _FILE_OFFSET_BITS to 64 to support large files
Without this patch, netperf2.6 can only
support files smaller than 2GB with TCP_SENDFILE item.
Signed-off-by: Ting Liu <b28495@freescale.com>
Tested-by: Jianhua Xie<jianhua.xie@freescale.com>
Reviewed-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Joe MacDonald <joe@deserted.net>
-rw-r--r-- | meta-networking/recipes-support/netperf/netperf_2.6.0.bb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/netperf/netperf_2.6.0.bb b/meta-networking/recipes-support/netperf/netperf_2.6.0.bb index eda78599c1..c206d5657d 100644 --- a/meta-networking/recipes-support/netperf/netperf_2.6.0.bb +++ b/meta-networking/recipes-support/netperf/netperf_2.6.0.bb | |||
@@ -23,6 +23,11 @@ S = "${WORKDIR}/netperf-${PV}" | |||
23 | # cpu_set.patch plus _GNU_SOURCE makes src/netlib.c compile with CPU_ macros | 23 | # cpu_set.patch plus _GNU_SOURCE makes src/netlib.c compile with CPU_ macros |
24 | CFLAGS_append = " -DDO_UNIX -DDO_IPV6 -D_GNU_SOURCE" | 24 | CFLAGS_append = " -DDO_UNIX -DDO_IPV6 -D_GNU_SOURCE" |
25 | 25 | ||
26 | # set the "_FILE_OFFSET_BITS" preprocessor symbol to 64 to support files | ||
27 | # larger than 2GB | ||
28 | CFLAGS_append = "${@base_contains('DISTRO_FEATURES', 'largefile', \ | ||
29 | ' -D_FILE_OFFSET_BITS=64', '', d)}" | ||
30 | |||
26 | # autotools.bbclass attends to include m4 files with path depth <= 2 by | 31 | # autotools.bbclass attends to include m4 files with path depth <= 2 by |
27 | # "find ${S} -maxdepth 2 -name \*.m4", so move m4 files from m4/m4. | 32 | # "find ${S} -maxdepth 2 -name \*.m4", so move m4 files from m4/m4. |
28 | do_configure_prepend() { | 33 | do_configure_prepend() { |