36ea6e64a3
ssl support which has been added in version 1.0.0 needs threads: /home/buildroot/autobuild/instance-3/output-1/build/hiredis-1.0.0/ssl.c:42:10: fatal error: pthread.h: No such file or directory #include <pthread.h> ^~~~~~~~~~~ Fixes: - http://autobuild.buildroot.org/results/80ac7500055d167e5ec9a964046de7cca4b4f9f5 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
23 lines
652 B
Makefile
23 lines
652 B
Makefile
################################################################################
|
|
#
|
|
# hiredis
|
|
#
|
|
################################################################################
|
|
|
|
HIREDIS_VERSION_MAJOR = 1.0
|
|
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_INSTALL_STAGING = YES
|
|
HIREDIS_CONF_OPTS = -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))
|