OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
2.3 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../musl/pkg/gcc/0026-always-build-libgcc_eh.a.patch
  5. # Copyright (C) 2020 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. From 8472f6d0037dcd19c44b1e95d95fbf937b3823e6 Mon Sep 17 00:00:00 2001
  17. From: Ariadne Conill <ariadne@dereferenced.org>
  18. Date: Fri, 21 Aug 2020 07:05:41 +0000
  19. Subject: [PATCH 26/30] always build libgcc_eh.a
  20. highly inspired by:
  21. http://landley.net/hg/aboriginal/file/7e0747a665ab/sources/patches/gcc-core-libgcceh.patch
  22. ---
  23. libgcc/Makefile.in | 11 ++++++-----
  24. 1 file changed, 6 insertions(+), 5 deletions(-)
  25. diff --git a/libgcc/Makefile.in b/libgcc/Makefile.in
  26. index 851e7657d07..99ec513a1a6 100644
  27. --- a/libgcc/Makefile.in
  28. +++ b/libgcc/Makefile.in
  29. @@ -956,8 +956,9 @@ ifneq ($(LIBUNWIND),)
  30. all: libunwind.a
  31. endif
  32. +all: libgcc_eh.a
  33. ifeq ($(enable_shared),yes)
  34. -all: libgcc_eh.a libgcc_s$(SHLIB_EXT)
  35. +all: libgcc_s$(SHLIB_EXT)
  36. ifneq ($(LIBUNWIND),)
  37. all: libunwind$(SHLIB_EXT)
  38. libgcc_s$(SHLIB_EXT): libunwind$(SHLIB_EXT)
  39. @@ -1159,10 +1160,6 @@ install-libunwind:
  40. install-shared:
  41. $(mkinstalldirs) $(DESTDIR)$(inst_libdir)
  42. - $(INSTALL_DATA) libgcc_eh.a $(DESTDIR)$(inst_libdir)/
  43. - chmod 644 $(DESTDIR)$(inst_libdir)/libgcc_eh.a
  44. - $(RANLIB) $(DESTDIR)$(inst_libdir)/libgcc_eh.a
  45. -
  46. $(subst @multilib_dir@,$(MULTIDIR),$(subst \
  47. @shlib_base_name@,libgcc_s,$(subst \
  48. @shlib_slibdir_qual@,$(MULTIOSSUBDIR),$(SHLIB_INSTALL))))
  49. @@ -1179,6 +1176,10 @@ ifeq ($(enable_gcov),yes)
  50. $(RANLIB) $(DESTDIR)$(inst_libdir)/libgcov.a
  51. endif
  52. + $(INSTALL_DATA) libgcc_eh.a $(DESTDIR)$(inst_libdir)/
  53. + chmod 644 $(DESTDIR)$(inst_libdir)/libgcc_eh.a
  54. + $(RANLIB) $(DESTDIR)$(inst_libdir)/libgcc_eh.a
  55. +
  56. parts="$(INSTALL_PARTS)"; \
  57. for file in $$parts; do \
  58. rm -f $(DESTDIR)$(inst_libdir)/$$file; \
  59. --
  60. 2.27.0