summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/elfutils/files/0001-libelf-Add-libeu-objects-to-libelf.a-static-archive.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/elfutils/files/0001-libelf-Add-libeu-objects-to-libelf.a-static-archive.patch')
-rw-r--r--meta/recipes-devtools/elfutils/files/0001-libelf-Add-libeu-objects-to-libelf.a-static-archive.patch35
1 files changed, 35 insertions, 0 deletions
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..81c5255447
--- /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 05484c1..72f1e22 100644
24--- a/libelf/Makefile.am
25+++ b/libelf/Makefile.am
26@@ -125,6 +125,9 @@ libelf.so: $(srcdir)/libelf.map $(libelf_so_LIBS) $(libelf_so_DEPS)
27 libeu_objects = $(shell cat ../lib/libeu.manifest)
28 libelf_a_LIBADD = $(addprefix ../lib/,$(libeu_objects))
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