mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-20 00:05:34 +03:00
Wires up USE=stacktrace for the new eu-stacktrace tool, which is very exciting, but still relies on patched sysprof so masked the USE flag for now. Signed-off-by: Sam James <sam@gentoo.org>
32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
https://sourceware.org/git/?p=elfutils.git;a=commit;h=f5d6e088f84dd05278c4698a21cbf1ff4569978d
|
|
|
|
From f5d6e088f84dd05278c4698a21cbf1ff4569978d Mon Sep 17 00:00:00 2001
|
|
From: Mark Wielaard <mark@klomp.org>
|
|
Date: Tue, 22 Oct 2024 15:03:42 +0200
|
|
Subject: [PATCH] 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/PR32293
|
|
|
|
Signed-off-by: Mark Wielaard <mark@klomp.org>
|
|
--- 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
|