[Fuego] [PATCH 2/2] iperf3: only do static compilation for libiperf
Daniel Sangorrin
daniel.sangorrin at toshiba.co.jp
Fri Jul 6 02:46:16 UTC 2018
> -----Original Message-----
> From: Li, Xiaoming <lixm.fnst at cn.fujitsu.com>
> Sent: Friday, July 6, 2018 11:24 AM
> To: Daniel Sangorrin <daniel.sangorrin at toshiba.co.jp>;
> fuego at lists.linuxfoundation.org
> Subject: RE: [Fuego] [PATCH 2/2] iperf3: only do static compilation for libiperf
>
> Hello Daniel:
>
> In further investigation, I found that these two ways output the same executeable
> file, with readelf command
>
> 1. --enable-shared=no
> 2. --enable-static --disable-shared
>
> Do u know the difference?
No, I don't now. But I prefer the second one. In fact, normally --disable-shared should be enough. Is --enable-static really needed?
The first one is wrong because --enable-shared requires a list of packages. "no" is not what you should write there.
https://gcc.gnu.org/install/configure.html
Thanks,
Daniel
>
> Thks
> Li
>
>
> -----Original Message-----
> From: Li, Xiaoming/李 霄鸣
> Sent: Tuesday, July 03, 2018 11:59 AM
> To: 'Daniel Sangorrin'; fuego at lists.linuxfoundation.org
> Subject: RE: [Fuego] [PATCH 2/2] iperf3: only do static compilation for libiperf
>
> Thanks Daniel:
>
> I have just tried " --enable-static --disable-shared" you refered,
> It runs successfully, and output a static executable file.
>
> I will submit a new patch later.
>
> Best regards,
> Li
>
> -----Original Message-----
> From: Daniel Sangorrin [mailto:daniel.sangorrin at toshiba.co.jp]
> Sent: Tuesday, July 03, 2018 10:54 AM
> To: Li, Xiaoming/李 霄鸣; fuego at lists.linuxfoundation.org
> Subject: RE: [Fuego] [PATCH 2/2] iperf3: only do static compilation for libiperf
>
> > -----Original Message-----
> > From: fuego-bounces at lists.linuxfoundation.org
> > <fuego-bounces at lists.linuxfoundation.org> On Behalf Of Li Xiaoming
> > Sent: Tuesday, July 3, 2018 4:41 AM
> > To: fuego at lists.linuxfoundation.org
> > Subject: [Fuego] [PATCH 2/2] iperf3: only do static compilation for
> > libiperf
> >
> > Not necessary static libraries will be needed, if we do a completely
> > static compilation. E.g. libc.a.
> >
> > Signed-off-by: Li Xiaoming <lixm.fnst at cn.fujitsu.com>
> > ---
> > engine/tests/Benchmark.iperf3/fuego_test.sh | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/engine/tests/Benchmark.iperf3/fuego_test.sh
> > b/engine/tests/Benchmark.iperf3/fuego_test.sh
> > index 6876d90..c8c0113 100755
> > --- a/engine/tests/Benchmark.iperf3/fuego_test.sh
> > +++ b/engine/tests/Benchmark.iperf3/fuego_test.sh
> > @@ -2,7 +2,7 @@
> > tarball=iperf-3.1.3-source.tar.gz
> >
> > function test_build {
> > - LDFLAGS=-static ./configure --host=$HOST --prefix=$(pwd)/build
> > + ./configure --host=$HOST --prefix=$(pwd)/build --enable-shared=no
> > make
> > }
> >
> > --
> > 2.7.4
>
> Thanks Li.
> I asked to the upstream developer[1] and he mentioned that the next options were
> correct. Could you try them and resend?
>
> --enable-static --disable-shared
>
> [1] https://github.com/esnet/iperf/issues/708
>
> Best regards,
> Daniel
>
>
>
>
>
>
>
>
>
More information about the Fuego
mailing list