summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/elfutils
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/elfutils')
-rw-r--r--meta/recipes-devtools/elfutils/elfutils_0.192.bb1
-rw-r--r--meta/recipes-devtools/elfutils/files/0001-libelf-Add-libeu-objects-to-libelf.a-static-archive.patch35
2 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-devtools/elfutils/elfutils_0.192.bb b/meta/recipes-devtools/elfutils/elfutils_0.192.bb
index f455178e16..7bf9865555 100644
--- a/meta/recipes-devtools/elfutils/elfutils_0.192.bb
+++ b/meta/recipes-devtools/elfutils/elfutils_0.192.bb
@@ -21,6 +21,7 @@ SRC_URI = "https://sourceware.org/elfutils/ftp/${PV}/${BP}.tar.bz2 \
21 file://ptest.patch \ 21 file://ptest.patch \
22 file://0001-tests-Makefile.am-compile-test_nlist-with-standard-C.patch \ 22 file://0001-tests-Makefile.am-compile-test_nlist-with-standard-C.patch \
23 file://0001-config-eu.am-do-not-force-Werror.patch \ 23 file://0001-config-eu.am-do-not-force-Werror.patch \
24 file://0001-libelf-Add-libeu-objects-to-libelf.a-static-archive.patch \
24 " 25 "
25SRC_URI:append:libc-musl = " \ 26SRC_URI:append:libc-musl = " \
26 file://0003-musl-utils.patch \ 27 file://0003-musl-utils.patch \
diff --git a/meta/recipes-devtools/elfutils/files/0001-libelf-Add-libeu-objects-to-libelf.a-static-archive.patch b/meta/recipes-devtools/elfutils/files/0001-libelf-Add-libeu-objects-to-libelf.a-static-archive.patch
new file mode 100644
index 0000000000..1587087896
--- /dev/null
+++ b/meta/recipes-devtools/elfutils/files/0001-libelf-Add-libeu-objects-to-libelf.a-static-archive.patch
@@ -0,0 +1,35 @@
1From f5d6e088f84dd05278c4698a21cbf1ff4569978d Mon Sep 17 00:00:00 2001
2From: Mark Wielaard <mark@klomp.org>
3Date: Tue, 22 Oct 2024 15:03:42 +0200
4Subject: [PATCH] libelf: Add libeu objects to libelf.a static archive
5
6libelf might use some symbols from libeu.a, specifically the eu-search
7wrappers. But we don't ship libeu.a separately. So include the libeu
8objects in the libelf.a archive to facilitate static linking.
9
10 * libelf/Makefile.am (libeu_objects): New variable.
11 (libelf_a_LIBADD): New, add libeu_objects.
12
13https://sourceware.org/bugzilla/show_bug.cgi?id=32293
14
15Signed-off-by: Mark Wielaard <mark@klomp.org>
16Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
17Upstream-Status: Backport [https://sourceware.org/git/?p=elfutils.git;a=commit;h=f5d6e088f84dd05278c4698a21cbf1ff4569978d]
18---
19 libelf/Makefile.am | 3 +++
20 1 file changed, 3 insertions(+)
21
22diff --git a/libelf/Makefile.am b/libelf/Makefile.am
23index 3402863e..2d3dbdf2 100644
24--- a/libelf/Makefile.am
25+++ b/libelf/Makefile.am
26@@ -122,6 +122,9 @@ libelf.so: $(srcdir)/libelf.map $(libelf_so_LIBS) $(libelf_so_DEPS)
27 @$(textrel_check)
28 $(AM_V_at)ln -fs $@ $@.$(VERSION)
29
30+libeu_objects = $(shell $(AR) t ../lib/libeu.a)
31+libelf_a_LIBADD = $(addprefix ../lib/,$(libeu_objects))
32+
33 install: install-am libelf.so
34 $(mkinstalldirs) $(DESTDIR)$(libdir)
35 $(INSTALL_PROGRAM) libelf.so $(DESTDIR)$(libdir)/libelf-$(PACKAGE_VERSION).so