007-add-libeu-symbols-to-libelf.patch 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. From f5d6e088f84dd05278c4698a21cbf1ff4569978d Mon Sep 17 00:00:00 2001
  2. From: Mark Wielaard <[email protected]>
  3. Date: Tue, 22 Oct 2024 15:03:42 +0200
  4. Subject: [PATCH] libelf: Add libeu objects to libelf.a static archive
  5. libelf might use some symbols from libeu.a, specifically the eu-search
  6. wrappers. But we don't ship libeu.a separately. So include the libeu
  7. objects in the libelf.a archive to facilitate static linking.
  8. * libelf/Makefile.am (libeu_objects): New variable.
  9. (libelf_a_LIBADD): New, add libeu_objects.
  10. https://sourceware.org/bugzilla/show_bug.cgi?id=32293
  11. Signed-off-by: Mark Wielaard <[email protected]>
  12. ---
  13. libelf/Makefile.am | 3 +++
  14. 1 file changed, 3 insertions(+)
  15. --- a/libelf/Makefile.am
  16. +++ b/libelf/Makefile.am
  17. @@ -122,6 +122,9 @@ libelf.so: $(srcdir)/libelf.map $(libelf
  18. @$(textrel_check)
  19. $(AM_V_at)ln -fs $@ $@.$(VERSION)
  20. +libeu_objects = $(shell $(AR) t ../lib/libeu.a)
  21. +libelf_a_LIBADD = $(addprefix ../lib/,$(libeu_objects))
  22. +
  23. install: install-am libelf.so
  24. $(mkinstalldirs) $(DESTDIR)$(libdir)
  25. $(INSTALL_PROGRAM) libelf.so $(DESTDIR)$(libdir)/libelf-$(PACKAGE_VERSION).so