From: Jo-Philipp Wich Date: Mon, 30 May 2016 10:19:10 +0000 (+0200) Subject: libftdi1: explicitely disable Boost unit tests X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=5c2689fe89063168aff250d7e3b8d3916563f491;p=feed%2Fpackages.git libftdi1: explicitely disable Boost unit tests When libftdi1 is detecting the presence of the Boost unit testing framework, it will conditionally enable the build of libftdi1 test binaries which fail to link on some targets with the following error: CMakeFiles/test_libftdi1.dir/basic.cpp.o: In function `main': basic.cpp:(.text.startup+0xc): undefined reference to `boost::unit_test::unit_test_main(bool (*)(), int, char**)' collect2: error: ld returned 1 exit status test/CMakeFiles/test_libftdi1.dir/build.make:123: recipe for target 'test/test_libftdi1' failed make[6]: *** [test/test_libftdi1] Error 1 Since we do not care about test cases and since we want to avoid unpredictable conditional compilation simply disable the testcases entirely. Signed-off-by: Jo-Philipp Wich --- diff --git a/libs/libftdi1/Makefile b/libs/libftdi1/Makefile index ed7ff2d2d6..725f915501 100644 --- a/libs/libftdi1/Makefile +++ b/libs/libftdi1/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libftdi1 PKG_VERSION:=1.2 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=http://www.intra2net.com/en/developer/libftdi/download/ @@ -22,6 +22,8 @@ PKG_LICENSE_FILES:=COPYING.LIB PKG_INSTALL:=1 PKG_USE_MIPS16:=0 +CMAKE_OPTIONS:=-DBUILD_TESTS=OFF + include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/cmake.mk