Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable-static does not work #708

Closed
sangorrin opened this issue Mar 2, 2018 · 3 comments
Closed

enable-static does not work #708

sangorrin opened this issue Mar 2, 2018 · 3 comments
Assignees
Labels

Comments

@sangorrin
Copy link

Context

  • Version of iperf3: latest commit
  • Hardware: any
  • Operating system (and distribution, if any): any
  • Other relevant information (for example, non-default compilers,
    libraries, cross-compiling, etc.): native and cross-compiling

Bug Report

  • Expected Behavior
    ./configure --enable-static should produce a static iperf3 binary
  • Actual Behavior
    It produces a dynamic binary
  • Steps to Reproduce
    ./configure --enable-static
    make
    ldd ./src/.libs/iperf3
  • Possible Solution
    LDFLAGS=-static ./configure
    make
    This works fine, but I think enable-static should work.
  • Possible Solution
    Use cmake instead of autotools. It is easier and much cleaner.
@bmah888 bmah888 self-assigned this Mar 2, 2018
@bmah888
Copy link
Contributor

bmah888 commented Mar 2, 2018

You need to do ./configure --enable-static --disable-shared.

I know this is suboptimal but that's the way autotools works.

@bmah888 bmah888 closed this as completed Mar 2, 2018
@sangorrin
Copy link
Author

Thank you, I didn't know that.

@lxs137
Copy link

lxs137 commented Feb 21, 2019

@bmah888 I try --enable-static --disable-shared this option, but still not work, file iperf3 get ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants