mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-08 08:30:47 -09:00
Adding -std=gnu17 was recommended in upstream PR: https://github.com/sustrik/libdill/issues/229#issuecomment-2865524080 Fixes: https://autobuild.buildroot.net/results/1a5/1a5e9d7df6c83a921cae39b4dc4b601be4d18e36/ Signed-off-by: Bernd Kuhls <bernd@kuhls.net> Signed-off-by: Arnout Vandecappelle <arnout@rnout.be>
37 lines
1.1 KiB
Makefile
37 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# libdill
|
|
#
|
|
################################################################################
|
|
|
|
LIBDILL_VERSION = 32d0e8b733416208e0412a56490332772bc5c6e1
|
|
LIBDILL_SITE = $(call github,sustrik,libdill,$(LIBDILL_VERSION))
|
|
LIBDILL_LICENSE = MIT
|
|
LIBDILL_LICENSE_FILES = COPYING
|
|
LIBDILL_INSTALL_STAGING = YES
|
|
# Fetched from Github, with no configure script
|
|
LIBDILL_DEPENDENCIES = host-pkgconf
|
|
LIBDILL_AUTORECONF = YES
|
|
|
|
# gcc-15 defaults to -std=gnu23 which introduces build failures.
|
|
# We force "-std=gnu17" for gcc version supporting it. Earlier gcc
|
|
# versions will work, since they are using the older standard.
|
|
ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_8),y)
|
|
LIBDILL_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -std=gnu17"
|
|
endif
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
|
LIBDILL_CONF_OPTS += --enable-threads
|
|
else
|
|
LIBDILL_CONF_OPTS += --disable-threads
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
LIBDILL_DEPENDENCIES += openssl
|
|
LIBDILL_CONF_OPTS += --enable-tls
|
|
else
|
|
LIBDILL_CONF_OPTS += --disable-tls
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|