[netperf-dev] [PATCH] Change to allow out-of-source-tree builds

David MacMahon davidm at astro.berkeley.edu
Mon Jul 18 22:37:44 PDT 2011


I ran into problems with src/netperf_version.h when building netperf2 in a directory other than the root of the source tree.  To re-create this problem, do these steps...

cd root/of/netperf2/source/tree
mkdir build
cd build
../configure
make

To fix this problem, apply the attached patch.

More details...

configure.ac contains a touch command to ensure that
netperf_version.h.in in always new, but it had assumed that the build
was being done at the root of the source tree.

Manually edit configure file to reflect this simple change rather than
regenerating to minimize changes to autotools-generated files (due to
different autotools versions).
---
 configure    |    2 +-
 configure.ac |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Enjoy and thanks for netperf,
Dave

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Change-to-allow-out-of-source-tree-builds.patch
Type: application/octet-stream
Size: 1353 bytes
Desc: not available
URL: <http://www.netperf.org/pipermail/netperf-dev/attachments/20110718/52c4dbb1/attachment.obj>
-------------- next part --------------




More information about the netperf-dev mailing list