2020-05-04 18:09:05 -04:00
|
|
|
# Also link binaries as static
|
|
|
|
AC_ARG_ENABLE([static-bin],
|
2020-05-28 10:10:21 -07:00
|
|
|
AS_HELP_STRING([--enable-static-bin], [link iperf3 binary statically]),
|
2020-06-10 07:34:14 -07:00
|
|
|
[enable_static=yes
|
|
|
|
enable_shared=no
|
|
|
|
enable_static_bin=yes],
|
2020-05-04 18:09:05 -04:00
|
|
|
[:])
|
|
|
|
AM_CONDITIONAL([ENABLE_STATIC_BIN], [test x$enable_static_bin = xno])
|
|
|
|
|
|
|
|
AS_IF([test "x$enable_static_bin" == xyes],
|
|
|
|
[LDFLAGS="$LDFLAGS --static"]
|
|
|
|
[])
|