forked from pool/elfutils
Accepting request 1238095 from Base:System
- Add fix-static-linking.patch (bsc#1234445) (forwarded request 1230649 from ateixeira) OBS-URL: https://build.opensuse.org/request/show/1238095 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/elfutils?expand=0&rev=115
This commit is contained in:
parent
d659a0ca0f
commit
91322de797
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 12 18:37:00 UTC 2024 - Antonio Teixeira <antonio.teixeira@suse.com>
|
||||
|
||||
- Add fix-static-linking.patch (bsc#1234445)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 2 13:13:00 UTC 2024 - Andreas Schwab <schwab@suse.de>
|
||||
|
||||
|
@ -31,6 +31,7 @@ Source4: https://sourceware.org/elfutils/ftp/%{version}/%{name}-%{version
|
||||
Source5: %{name}.keyring
|
||||
Source6: elfutils-rpmlintrc
|
||||
Patch1: harden_debuginfod.service.patch
|
||||
Patch2: fix-static-linking.patch
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: bison
|
||||
|
37
fix-static-linking.patch
Normal file
37
fix-static-linking.patch
Normal file
@ -0,0 +1,37 @@
|
||||
From f5d6e088f84dd05278c4698a21cbf1ff4569978d Mon Sep 17 00:00:00 2001
|
||||
From: Mark Wielaard <mark@klomp.org>
|
||||
Date: Tue, 22 Oct 2024 15:03:42 +0200
|
||||
References: bsc#1234445
|
||||
Subject: [PATCH 1/1] libelf: Add libeu objects to libelf.a static archive
|
||||
|
||||
libelf might use some symbols from libeu.a, specifically the eu-search
|
||||
wrappers. But we don't ship libeu.a separately. So include the libeu
|
||||
objects in the libelf.a archive to facilitate static linking.
|
||||
|
||||
* libelf/Makefile.am (libeu_objects): New variable.
|
||||
(libelf_a_LIBADD): New, add libeu_objects.
|
||||
|
||||
https://sourceware.org/bugzilla/show_bug.cgi?id=32293
|
||||
|
||||
Signed-off-by: Mark Wielaard <mark@klomp.org>
|
||||
---
|
||||
libelf/Makefile.am | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/libelf/Makefile.am b/libelf/Makefile.am
|
||||
index 3402863ef..2d3dbdf22 100644
|
||||
--- a/libelf/Makefile.am
|
||||
+++ b/libelf/Makefile.am
|
||||
@@ -122,6 +122,9 @@ libelf.so: $(srcdir)/libelf.map $(libelf_so_LIBS) $(libelf_so_DEPS)
|
||||
@$(textrel_check)
|
||||
$(AM_V_at)ln -fs $@ $@.$(VERSION)
|
||||
|
||||
+libeu_objects = $(shell $(AR) t ../lib/libeu.a)
|
||||
+libelf_a_LIBADD = $(addprefix ../lib/,$(libeu_objects))
|
||||
+
|
||||
install: install-am libelf.so
|
||||
$(mkinstalldirs) $(DESTDIR)$(libdir)
|
||||
$(INSTALL_PROGRAM) libelf.so $(DESTDIR)$(libdir)/libelf-$(PACKAGE_VERSION).so
|
||||
--
|
||||
2.43.5
|
||||
|
Loading…
Reference in New Issue
Block a user