From b884a2f796d8afaf748ea87a2b5a245a78a785ea Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 26 Jan 2011 13:49:28 +0000 Subject: [PATCH] iperf: fix g++-uc override, add -lpthread explicitly for iperf-mt SVN-Revision: 25114 --- net/iperf/Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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 -- 2.30.2