Browse Source

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 <jo@mein.io>
lilik-openwrt-22.03
Jo-Philipp Wich 9 years ago
parent
commit
5c2689fe89
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libs/libftdi1/Makefile

+ 3
- 1
libs/libftdi1/Makefile View File

@ -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


Loading…
Cancel
Save