![Thomas Petazzoni](/assets/img/avatar_default.png)
When --enable-debug is used, liblog4c-localtime wants to use <mcheck.h> if __GLIBC__ is defined. Unfortunately, uClibc defines __GLIBC__ but does not provides mcheck.h. Therefore, this commit introduces a patch (0003) that checks if mcheck.h is available or not. However, this patch requires autoreconfiguring the package, which is currently broken. Therefore, the two other patches (0004 and 0005) are meant to fix autoreconfiguration of the package. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
24 lines
808 B
Makefile
24 lines
808 B
Makefile
################################################################################
|
|
#
|
|
# liblog4c-localtime
|
|
#
|
|
################################################################################
|
|
|
|
LIBLOG4C_LOCALTIME_VERSION = v1.0
|
|
LIBLOG4C_LOCALTIME_SITE = $(call github,rcmadruga,log4c-localtime,$(LIBLOG4C_LOCALTIME_VERSION))
|
|
LIBLOG4C_LOCALTIME_INSTALL_STAGING = YES
|
|
LIBLOG4C_LOCALTIME_CONF_OPTS = --disable-expattest
|
|
LIBLOG4C_LOCALTIME_DEPENDENCIES = expat
|
|
LIBLOG4C_LOCALTIME_CONFIG_SCRIPTS = log4c-config
|
|
LIBLOG4C_LOCALTIME_LICENSE = LGPLv2.1
|
|
LIBLOG4C_LOCALTIME_LICENSE_FILES = COPYING
|
|
LIBLOG4C_LOCALTIME_AUTORECONF = YES
|
|
|
|
define LIBLOG4C_LOCALTIME_FIX_CONFIGURE_PERMS
|
|
chmod +x $(@D)/configure
|
|
endef
|
|
|
|
LIBLOG4C_LOCALTIME_PRE_CONFIGURE_HOOKS += LIBLOG4C_LOCALTIME_FIX_CONFIGURE_PERMS
|
|
|
|
$(eval $(autotools-package))
|