834464792e
Fix autobuild failures after bumping the package to 0.9.75 in commit
8ec001b467
:
conftest.c:64:26: error: #error "_REENTRANT must be defined"
Fixes:
http://autobuild.buildroot.net/results/f76/f7668104dd64a93f0b343ce3ebbe50b12584184d/
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
37 lines
1.1 KiB
Makefile
37 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# libmicrohttpd
|
|
#
|
|
################################################################################
|
|
|
|
LIBMICROHTTPD_VERSION = 0.9.75
|
|
LIBMICROHTTPD_SITE = $(BR2_GNU_MIRROR)/libmicrohttpd
|
|
LIBMICROHTTPD_LICENSE_FILES = COPYING
|
|
LIBMICROHTTPD_CPE_ID_VENDOR = gnu
|
|
LIBMICROHTTPD_INSTALL_STAGING = YES
|
|
LIBMICROHTTPD_CONF_OPTS = --disable-curl --disable-examples
|
|
LIBMICROHTTPD_CFLAGS = $(TARGET_CFLAGS) -std=c99
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
|
LIBMICROHTTPD_CFLAGS += -D_REENTRANT
|
|
endif
|
|
|
|
LIBMICROHTTPD_CONF_ENV += CFLAGS="$(LIBMICROHTTPD_CFLAGS)"
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBMICROHTTPD_SSL),y)
|
|
LIBMICROHTTPD_LICENSE = LGPL-2.1+
|
|
LIBMICROHTTPD_DEPENDENCIES += host-pkgconf gnutls
|
|
LIBMICROHTTPD_CONF_OPTS += --enable-https --with-gnutls=$(STAGING_DIR)/usr
|
|
else
|
|
LIBMICROHTTPD_LICENSE = LGPL-2.1+ or eCos
|
|
LIBMICROHTTPD_CONF_OPTS += --disable-https
|
|
endif
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
|
LIBMICROHTTPD_CONF_OPTS += --with-threads=auto
|
|
else
|
|
LIBMICROHTTPD_CONF_OPTS += --with-threads=none
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|