Files
buildroot/package/daemon/daemon.mk
Baruch Siach 681b34ea4d package/daemon: fix build with gcc 15 and musl libc
daemon provides its own getopt() declaration for non-GNU libcs. This
declaration is compatible with musl provided one with C standards before
C23. GCC 15 defaults to C23 that makes the empty params declaration
equivalent to getopt(void), which is incompatible with musl declaration.

Set C standard to gnu99 to restore the previous behaviour.

Fixes:
https://autobuild.buildroot.org/results/cc3311c86e2b14bf9a9c1ea00056e0b290ec11a3

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Romain Naour <romain.naour@smile.fr>
2025-08-10 19:00:54 +02:00

32 lines
913 B
Makefile

################################################################################
#
# daemon
#
################################################################################
DAEMON_VERSION = 0.8.4
DAEMON_SITE = http://libslack.org/daemon/download
DAEMON_LICENSE = GPL-2.0+, LGPL-2.0+, BSD-3-Clause, Tatu Ylonen permissive license
DAEMON_LICENSE_FILES = LICENSE COPYING \
LICENSES/LicenseRef-BSD-3-Clause-Almost.txt \
LICENSES/GPL-2.0-or-later.txt \
LICENSES/LGPL-2.0-or-later.txt \
LICENSES/LicenseRef-Tatu-Ylonen-Permissive.txt
define DAEMON_CONFIGURE_CMDS
(cd $(@D); ./configure)
endef
define DAEMON_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS) -std=c99" -C $(@D)
endef
define DAEMON_INSTALL_TARGET_CMDS
$(TARGET_MAKE_ENV) DEB_BUILD_OPTIONS=nostrip \
$(MAKE) PREFIX=$(TARGET_DIR)/usr -C $(@D) \
install-daemon-bin
endef
$(eval $(generic-package))