ikshwak / iperf

Automatically exported from code.google.com/p/iperf
Other
0 stars 0 forks source link

libiperf dynamic library #146

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Right now, libiperf is built as a static library which means that bwctl needs 
to release an update whenever libiperf gets updated. Attached is a patch that 
makes libiperf a dynamic library, so bwctl and libiperf could be updated 
independently. The only downside is that greater care would need taken in 
dealing with the API to ensure backward compatibility. Tested on linux and OS X.

Note: the patch also adds flowlabel.h to the libiperf SOURCES. It wasn't 
getting included in a "make dist".

Original issue reported on code.google.com by AaronMat...@gmail.com on 24 Feb 2014 at 5:13

Attachments:

GoogleCodeExporter commented 8 years ago
This patch appears to work correctly on FreeBSD.  I'm going to do a little more 
testing on this before committing.

I noticed that this patch turns off static library generation.  Is the idea 
here that with dynamic library being generated there's no point in building the 
static binary?

Note to self:  When we release a version of iperf3 containing this patch, need 
to update the FreeBSD port to deal with the shared library.

Original comment by bmah@es.net on 25 Feb 2014 at 12:24