de82d57b56
Use pkg-config to retrieve libusb dependencies such as -latomic and
avoid the following static build failure raised since bump of libusb to
version 1.0.25 in commit aad609936f
:
/nvmedata/autobuild/instance-29/output-1/per-package/libftdi1/host/bin/../lib/gcc/sparc-buildroot-linux-uclibc/10.3.0/../../../../sparc-buildroot-linux-uclibc/bin/ld: /nvmedata/autobuild/instance-29/output-1/per-package/libftdi1/host/sparc-buildroot-linux-uclibc/sysroot/lib/libusb-1.0.a(core.o): in function `libusb_unref_device':
/nvmedata/autobuild/instance-29/output-1/build/libusb-1.0.25/libusb/core.c:1186: undefined reference to `__atomic_fetch_add_4'
Fixes:
- http://autobuild.buildroot.org/results/1ca7cd85ae60ad4797a6d8a83b2fb51d7eab96d9
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Reviewed-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
44 lines
1.4 KiB
Makefile
44 lines
1.4 KiB
Makefile
################################################################################
|
|
#
|
|
# libftdi1
|
|
#
|
|
################################################################################
|
|
|
|
LIBFTDI1_VERSION = 1.5
|
|
LIBFTDI1_SOURCE = libftdi1-$(LIBFTDI1_VERSION).tar.bz2
|
|
LIBFTDI1_SITE = http://www.intra2net.com/en/developer/libftdi/download
|
|
LIBFTDI1_INSTALL_STAGING = YES
|
|
LIBFTDI1_DEPENDENCIES = host-pkgconf libusb
|
|
LIBFTDI1_LICENSE = LGPL-2.1 (libftdi1), MIT (libftdi1)
|
|
LIBFTDI1_LICENSE_FILES = LICENSE COPYING.LIB
|
|
LIBFTDI1_CONFIG_SCRIPTS = libftdi1-config
|
|
LIBFTDI1_CONF_OPTS = -DDOCUMENTATION=OFF -DEXAMPLES=OFF
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBFTDI1_LIBFTDIPP1),y)
|
|
LIBFTDI1_LICENSE += , GPL-2.0 with exception (libftdipp1)
|
|
LIBFTDI1_LICENSE_FILES += COPYING.GPL
|
|
LIBFTDI1_DEPENDENCIES += boost
|
|
LIBFTDI1_CONF_OPTS += -DFTDIPP=ON
|
|
else
|
|
LIBFTDI1_CONF_OPTS += -DFTDIPP=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBFTDI1_PYTHON_BINDINGS),y)
|
|
LIBFTDI1_DEPENDENCIES += python3 host-swig
|
|
LIBFTDI1_CONF_OPTS += -DPYTHON_BINDINGS=ON
|
|
else
|
|
LIBFTDI1_CONF_OPTS += -DPYTHON_BINDINGS=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBFTDI1_FDTI_EEPROM),y)
|
|
# ftdi_eeprom optionally depends on libintl
|
|
LIBFTDI1_LICENSE += , GPL-2.0 (ftdi_eeprom)
|
|
LIBFTDI1_LICENSE_FILES += COPYING.GPL
|
|
LIBFTDI1_DEPENDENCIES += libconfuse $(TARGET_NLS_DEPENDENCIES)
|
|
LIBFTDI1_CONF_OPTS += -DFTDI_EEPROM=ON
|
|
else
|
|
LIBFTDI1_CONF_OPTS += -DFTDI_EEPROM=OFF
|
|
endif
|
|
|
|
$(eval $(cmake-package))
|