From: Felix Fietkau Date: Wed, 26 Jan 2011 13:49:28 +0000 (+0000) Subject: iperf: fix g++-uc override, add -lpthread explicitly for iperf-mt X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b884a2f796d8afaf748ea87a2b5a245a78a785ea;p=openwrt%2Fsvn-archive%2Fpackages.git iperf: fix g++-uc override, add -lpthread explicitly for iperf-mt SVN-Revision: 25114 --- 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