From 8f1ed5b3f922c28e0e9b3caff94ffc8765930781 Mon Sep 17 00:00:00 2001 From: nbd Date: Wed, 26 Jan 2011 13:49:28 +0000 Subject: [PATCH] iperf: fix g++-uc override, add -lpthread explicitly for iperf-mt git-svn-id: svn://svn.openwrt.org/openwrt/packages@25114 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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