diff --git a/net/iperf/Makefile b/net/iperf/Makefile index a173b7d93..473c0625d 100644 --- a/net/iperf/Makefile +++ b/net/iperf/Makefile @@ -67,9 +67,13 @@ else CONFIGURE_VARS += ac_cv_func_pthread_cancel=no endif -CONFIGURE_VARS += \ - CXX="g++-uc" \ - CXXFLAGS="$$$$CXXFLAGS -fno-rtti" \ +TARGET_CXX=g++-uc + +CONFIGURE_VARS += CXXFLAGS="$$$$CXXFLAGS -fno-rtti" + +ifeq ($(BUILD_VARIANT),mt) + CONFIGURE_VARS += LIBS="-lpthread" +endif define Package/iperf/install $(INSTALL_DIR) $(1)/usr/bin