kumquat-buildroot/package/tinydtls/tinydtls.mk
Fabrice Fontaine 2b397c22fc package/tinydtls: fix build with automake >= 1.16.4
Touch ar-lib as suggested by upstream in
https://github.com/eclipse/tinydtls/pull/103 and
5c6fd178e8
to avoid the following build failure since bump of automake to version
1.16.4 in commit fe90272b51:

configure.ac: error: required file 'ar-lib' not found

Fixes:
 - http://autobuild.buildroot.org/results/fa23cdf0d454c2ad11af3cdcc2810cd442918667

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2021-12-04 09:20:10 +01:00

26 lines
800 B
Makefile

################################################################################
#
# tinydtls
#
################################################################################
TINYDTLS_VERSION = 0.9-rc1
TINYDTLS_SITE = $(call github,eclipse,tinydtls,v$(TINYDTLS_VERSION))
TINYDTLS_LICENSE = EPL-1.0 or EDL-1.0
TINYDTLS_LICENSE_FILES = LICENSE
TINYDTLS_CPE_ID_VENDOR = eclipse
TINYDTLS_INSTALL_STAGING = YES
TINYDTLS_DEPENDENCIES = host-pkgconf
# From git
TINYDTLS_AUTORECONF = YES
# use inttypes.h data types instead of u_intXX_t for musl compatibility
TINYDTLS_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -DSHA2_USE_INTTYPES_H"
# Fix build with automake >= 1.16.4
define TINYDTLS_TOUCH_AR_LIB
touch $(@D)/ar-lib
endef
TINYDTLS_PRE_CONFIGURE_HOOKS += TINYDTLS_TOUCH_AR_LIB
$(eval $(autotools-package))