From d3e453e96401e0df74b385e296373bd29ddd6c4c Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Sun, 16 Jan 2022 23:07:24 +0100 Subject: [PATCH] package/liburing: fix static build Fix the following static build failure raised since the addition of the package in commit 03ca6f4e39874583060317e7e15e9e360220877e: >>> liburing 2.1 Installing to staging directory PATH="/home/buildroot/autobuild/instance-3/output-1/host/bin:/home/buildroot/autobuild/instance-3/output-1/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" /usr/bin/make -j4 -C /home/buildroot/autobuild/instance-3/output-1/build/liburing-2.1 DESTDIR=/home/buildroot/autobuild/instance-3/output-1/host/arc-buildroot-linux-uclibc/sysroot install make[1]: Entering directory '/home/buildroot/autobuild/instance-3/output-1/build/liburing-2.1' sed -e "s%@prefix@%/usr%g" \ -e "s%@libdir@%/usr/lib%g" \ -e "s%@includedir@%/usr/include%g" \ -e "s%@NAME@%liburing%g" \ -e "s%@VERSION@%2.0%g" \ liburing.pc.in >liburing.pc make[2]: Entering directory '/home/buildroot/autobuild/instance-3/output-1/build/liburing-2.1/src' CC setup.os CC queue.os CC syscall.os CC register.os CC liburing.so.2.1.0 /home/buildroot/autobuild/instance-3/output-1/host/lib/gcc/arc-buildroot-linux-uclibc/10.2.0/../../../../arc-buildroot-linux-uclibc/bin/ld: /home/buildroot/autobuild/instance-3/output-1/host/arc-buildroot-linux-uclibc/sysroot/usr/lib/libc.a(__uClibc_main.os): in function `__uClibc_fini': __uClibc_main.c:(.text+0xa2): undefined reference to `__fini_array_start' Fixes: - http://autobuild.buildroot.org/results/54c67e0f5bd2b5f520a250dc13b5846f94fc1790 Signed-off-by: Fabrice Fontaine Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- package/liburing/liburing.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/package/liburing/liburing.mk b/package/liburing/liburing.mk index 74ce4156f8..874e268d43 100644 --- a/package/liburing/liburing.mk +++ b/package/liburing/liburing.mk @@ -30,11 +30,13 @@ define LIBURING_BUILD_CMDS endef define LIBURING_INSTALL_STAGING_CMDS - $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install + $(TARGET_MAKE_ENV) $(MAKE) $(LIBURING_MAKE_OPTS) -C $(@D) \ + DESTDIR=$(STAGING_DIR) install endef define LIBURING_INSTALL_TARGET_CMDS - $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install + $(TARGET_MAKE_ENV) $(MAKE) $(LIBURING_MAKE_OPTS) -C $(@D) \ + DESTDIR=$(TARGET_DIR) install endef $(eval $(generic-package))