Tuesday, July 30, 2013

iperf static build arm cross compile commands

# ./configure ac_cv_func_malloc_0_nonnull=yes  ac_cv_type_bool=yes ac_cv_sizeof_bool=1  CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++ --host=arm  CFLAGS=-static CXXFLAGS=-static

# make

# file src/iperf


2 comments:

  1. Hi, following your commands, I get

    $ file iperf3
    iperf3: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=33df741e068aaf7a9ae8a24a6243de87c35c6ca5, not stripped

    iperf3 is not a statically linked executable. Any hint? I am using the latest iperf version, iperf3.

    regards,
    Huan

    ReplyDelete
    Replies
    1. Hmm..actually this is may not be relevant to iperf3 and some option might been changed.

      You can try checking the configure help like, ./configure --help and check options for static compilation.
      Ensure, yours is clean build, carry out make distclean or untar freshly and build it.

      Delete