7ff5f7ff0a
hiredis suffix its debug libraries with "d" since version 1.1.0 anddde6916b42
resulting in the following build failure with collectd since commitbd7e907798
: redis . . . . . . . . no (symbol 'redisCommand' not found) (dependency error) Fixes: - http://autobuild.buildroot.org/results/394ebf2b6816c69dbdd7901491c0e3fd52befedc Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
26 lines
835 B
Makefile
26 lines
835 B
Makefile
################################################################################
|
|
#
|
|
# hiredis
|
|
#
|
|
################################################################################
|
|
|
|
HIREDIS_VERSION_MAJOR = 1.1
|
|
HIREDIS_VERSION = $(HIREDIS_VERSION_MAJOR).0
|
|
HIREDIS_SITE = $(call github,redis,hiredis,v$(HIREDIS_VERSION))
|
|
HIREDIS_LICENSE = BSD-3-Clause
|
|
HIREDIS_LICENSE_FILES = COPYING
|
|
HIREDIS_CPE_ID_VENDOR = redislabs
|
|
HIREDIS_INSTALL_STAGING = YES
|
|
# Set CMAKE_BUILD_TYPE to Release or the libraries will be suffixed with "d"
|
|
# resulting in a build failure with collectd
|
|
HIREDIS_CONF_OPTS = -DCMAKE_BUILD_TYPE=Release -DDISABLE_TESTS=ON
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL)$(BR2_TOOLCHAIN_HAS_THREADS),yy)
|
|
HIREDIS_CONF_OPTS += -DENABLE_SSL=ON
|
|
HIREDIS_DEPENDENCIES += openssl
|
|
else
|
|
HIREDIS_CONF_OPTS += -DENABLE_SSL=OFF
|
|
endif
|
|
|
|
$(eval $(cmake-package))
|