diff options
| author | Martin Jansa <martin.jansa@gmail.com> | 2024-12-07 09:27:08 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-12-09 15:23:28 +0000 |
| commit | 94f439bac2ad7e6e2b8dc757215fec25e926e9da (patch) | |
| tree | 54580ed038746be958cc5796919376eda83fe08b /meta/recipes-devtools/elfutils | |
| parent | 9a66b0af012517058a9c9c4cf0a639337850fe9f (diff) | |
| download | poky-94f439bac2ad7e6e2b8dc757215fec25e926e9da.tar.gz | |
elfutils: backport a fix for libeu objects missing in libelf.a
* since the 0.192 upgrade from:
https://git.openembedded.org/openembedded-core/commit/?id=1d6ac3c811798732e6addc798656bbe104661d77
some recipes are failing to build, backport a fix
(From OE-Core rev: b4bd2a2bf603ec4684ac052d55cb2c53972b89e8)
Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/elfutils')
| -rw-r--r-- | meta/recipes-devtools/elfutils/elfutils_0.192.bb | 1 | ||||
| -rw-r--r-- | meta/recipes-devtools/elfutils/files/0001-libelf-Add-libeu-objects-to-libelf.a-static-archive.patch | 35 |
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 | " |
| 25 | SRC_URI:append:libc-musl = " \ | 26 | SRC_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 @@ | |||
| 1 | From f5d6e088f84dd05278c4698a21cbf1ff4569978d Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Mark Wielaard <mark@klomp.org> | ||
| 3 | Date: Tue, 22 Oct 2024 15:03:42 +0200 | ||
| 4 | Subject: [PATCH] libelf: Add libeu objects to libelf.a static archive | ||
| 5 | |||
| 6 | libelf might use some symbols from libeu.a, specifically the eu-search | ||
| 7 | wrappers. But we don't ship libeu.a separately. So include the libeu | ||
| 8 | objects 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 | |||
| 13 | https://sourceware.org/bugzilla/show_bug.cgi?id=32293 | ||
| 14 | |||
| 15 | Signed-off-by: Mark Wielaard <mark@klomp.org> | ||
| 16 | Signed-off-by: Martin Jansa <martin.jansa@gmail.com> | ||
| 17 | Upstream-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 | |||
| 22 | diff --git a/libelf/Makefile.am b/libelf/Makefile.am | ||
| 23 | index 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 | ||
