Files
buildroot/package/libdex/libdex.mk
Fabrice Fontaine a73ef093f7 package/libdex: needs ucontext
libdex needs ucontext since its addition in commit
70319b47f6:

/home/autobuild/autobuild/instance-11/output-1/host/lib/gcc/aarch64-buildroot-linux-musl/13.3.0/../../../../aarch64-buildroot-linux-musl/bin/ld: src/libdex-1.a.p/dex-fiber.c.o: in function `dex_fiber_context_init':
/home/autobuild/autobuild/instance-11/output-1/build/libdex-0.6.1/build/../src/dex-fiber-context-private.h:131:(.text+0x30c): undefined reference to `getcontext'

[...]

In file included from ../src/dex-fiber-private.h:34,
                 from ../src/dex-scheduler.c:25:
../src/dex-fiber-context-private.h: In function '_dex_fiber_context_makecontext':
../src/dex-fiber-context-private.h:108:3: error: implicit declaration of function 'makecontext' [-Werror=implicit-function-declaration]
  108 |   makecontext (ucontext,
      |   ^~~~~~~~~~~

Fixes: 70319b47f6
 - http://autobuild.buildroot.org/results/5f23b0e41f2957b0562c5d168f35e42f13bdad0b
 - http://autobuild.buildroot.org/results/67d958e9a8e1dfb147ac7be4fcb74fcafbbce987

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2024-07-23 23:04:55 +02:00

38 lines
982 B
Makefile

################################################################################
#
# libdex
#
################################################################################
LIBDEX_VERSION_MAJOR = 0.6
LIBDEX_VERSION = $(LIBDEX_VERSION_MAJOR).1
LIBDEX_SOURCE = libdex-$(LIBDEX_VERSION).tar.xz
LIBDEX_SITE = https://download.gnome.org/sources/libdex/$(LIBDEX_VERSION_MAJOR)
LIBDEX_LICENSE = LGPL-2.1+
LIBDEX_LICENSE_FILES = COPYING
LIBDEX_INSTALL_STAGING = YES
LIBDEX_DEPENDENCIES = libglib2
LIBDEX_CONF_OPTS = \
-Ddocs=false \
-Dexamples=false \
-Dstack-protector=false \
-Dsysprof=false \
-Dtests=false \
-Dvapi=false \
-Deventfd=enabled \
-Dintrospection=disabled
ifeq ($(BR2_PACKAGE_LIBUCONTEXT),y)
LIBDEX_DEPENDENCIES += libucontext
LIBDEX_LDFLAGS += $(TARGET_LDFLAGS) -lucontext
endif
ifeq ($(BR2_PACKAGE_LIBURING),y)
LIBDEX_CONF_OPTS += -Dliburing=enabled
LIBDEX_DEPENDENCIES += liburing
else
LIBDEX_CONF_OPTS += -Dliburing=disabled
endif
$(eval $(meson-package))