kumquat-buildroot/package/conmon/conmon.mk
Fabrice Fontaine 8077efb837 package/conmon: fix build with gcc 4.8
Fix the following build failure with gcc 4.8 raised since the addition
of the package in commit 06f50ff1bf:

src/conmon.c:5:2: error: #error conmon.c requires C99 or later
 #error conmon.c requires C99 or later
  ^

Fixes: 06f50ff1bf
 - http://autobuild.buildroot.org/results/b573aceefde04435ea13dfd2a48f9c2372bde4d7

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-03-03 13:27:46 +01:00

38 lines
1.0 KiB
Makefile

################################################################################
#
# conmon
#
################################################################################
CONMON_VERSION = 2.1.8
CONMON_SITE = $(call github,containers,conmon,v$(CONMON_VERSION))
CONMON_LICENSE = Apache-2.0
CONMON_LICENSE_FILES = LICENSE
CONMON_DEPENDENCIES = host-pkgconf libglib2
ifeq ($(BR2_PACKAGE_LIBSECCOMP)$(BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0):$(BR2_STATIC_LIBS),yy:)
CONMON_DISABLE_SECCOMP = 0
CONMON_DEPENDENCIES += libseccomp
else
CONMON_DISABLE_SECCOMP = 1
endif
define CONMON_CONFIGURE_CMDS
printf '#!/bin/bash\necho "$(CONMON_DISABLE_SECCOMP)"\n' > \
$(@D)/hack/seccomp-notify.sh
chmod +x $(@D)/hack/seccomp-notify.sh
endef
define CONMON_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" \
CFLAGS="$(TARGET_CFLAGS) -std=c99" \
LDFLAGS="$(TARGET_LDFLAGS)" -C $(@D) bin/conmon
endef
define CONMON_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 755 $(@D)/bin/conmon $(TARGET_DIR)/usr/bin/conmon
endef
$(eval $(generic-package))