diff --git a/scripts/build_iperf3.sh b/scripts/build_iperf3.sh index b53e942..a60b63d 100755 --- a/scripts/build_iperf3.sh +++ b/scripts/build_iperf3.sh @@ -26,13 +26,14 @@ curl -fsSLO "https://downloads.es.net/pub/iperf/iperf-${VERSION}.tar.gz" tar -xzf "iperf-${VERSION}.tar.gz" cd "iperf-${VERSION}" -export CFLAGS="-O2 -static -fno-pie" +export CFLAGS="-O2 -fno-pie" export CPPFLAGS="" -export LDFLAGS="-static -no-pie" +export LDFLAGS="-no-pie" ./configure \ --disable-shared \ --enable-static \ + --enable-static-bin \ --without-sctp make -j"$(getconf _NPROCESSORS_ONLN || echo 2)"