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>
This commit is contained in:
Fabrice Fontaine 2021-10-13 20:43:07 +02:00 committed by Peter Korsgaard
parent 47f3f8a1c8
commit 2b397c22fc

View file

@ -16,4 +16,10 @@ 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))