2023-05-21 19:12:02 +00:00
|
|
|
From fc731db4cee01c38c1454e55ec51cb78d6713188 Mon Sep 17 00:00:00 2001
|
2020-08-21 10:18:02 +00:00
|
|
|
From: Ariadne Conill <ariadne@dereferenced.org>
|
|
|
|
Date: Fri, 21 Aug 2020 07:05:41 +0000
|
2023-05-21 19:12:02 +00:00
|
|
|
Subject: [PATCH 24/32] always build libgcc_eh.a
|
2020-08-21 10:18:02 +00:00
|
|
|
|
|
|
|
highly inspired by:
|
2018-12-12 17:14:55 +00:00
|
|
|
http://landley.net/hg/aboriginal/file/7e0747a665ab/sources/patches/gcc-core-libgcceh.patch
|
2020-08-21 10:18:02 +00:00
|
|
|
---
|
|
|
|
libgcc/Makefile.in | 11 ++++++-----
|
|
|
|
1 file changed, 6 insertions(+), 5 deletions(-)
|
2018-12-12 17:14:55 +00:00
|
|
|
|
2020-08-21 10:18:02 +00:00
|
|
|
diff --git a/libgcc/Makefile.in b/libgcc/Makefile.in
|
2023-05-15 08:15:31 +00:00
|
|
|
index 6c4dc79ab71..023cede18a7 100644
|
2020-08-21 10:18:02 +00:00
|
|
|
--- a/libgcc/Makefile.in
|
|
|
|
+++ b/libgcc/Makefile.in
|
2023-05-15 08:15:31 +00:00
|
|
|
@@ -960,8 +960,9 @@ ifneq ($(LIBUNWIND),)
|
2020-08-21 10:18:02 +00:00
|
|
|
all: libunwind.a
|
2018-12-12 17:14:55 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
+all: libgcc_eh.a
|
|
|
|
ifeq ($(enable_shared),yes)
|
|
|
|
-all: libgcc_eh.a libgcc_s$(SHLIB_EXT)
|
|
|
|
+all: libgcc_s$(SHLIB_EXT)
|
|
|
|
ifneq ($(LIBUNWIND),)
|
|
|
|
all: libunwind$(SHLIB_EXT)
|
2020-08-21 10:18:02 +00:00
|
|
|
libgcc_s$(SHLIB_EXT): libunwind$(SHLIB_EXT)
|
2023-05-15 08:15:31 +00:00
|
|
|
@@ -1163,10 +1164,6 @@ install-libunwind:
|
2018-12-12 17:14:55 +00:00
|
|
|
install-shared:
|
|
|
|
$(mkinstalldirs) $(DESTDIR)$(inst_libdir)
|
|
|
|
|
|
|
|
- $(INSTALL_DATA) libgcc_eh.a $(DESTDIR)$(inst_libdir)/
|
|
|
|
- chmod 644 $(DESTDIR)$(inst_libdir)/libgcc_eh.a
|
|
|
|
- $(RANLIB) $(DESTDIR)$(inst_libdir)/libgcc_eh.a
|
|
|
|
-
|
|
|
|
$(subst @multilib_dir@,$(MULTIDIR),$(subst \
|
|
|
|
@shlib_base_name@,libgcc_s,$(subst \
|
|
|
|
@shlib_slibdir_qual@,$(MULTIOSSUBDIR),$(SHLIB_INSTALL))))
|
2023-05-15 08:15:31 +00:00
|
|
|
@@ -1183,6 +1180,10 @@ ifeq ($(enable_gcov),yes)
|
2018-12-12 17:14:55 +00:00
|
|
|
$(RANLIB) $(DESTDIR)$(inst_libdir)/libgcov.a
|
2020-08-21 10:18:02 +00:00
|
|
|
endif
|
2018-12-12 17:14:55 +00:00
|
|
|
|
|
|
|
+ $(INSTALL_DATA) libgcc_eh.a $(DESTDIR)$(inst_libdir)/
|
|
|
|
+ chmod 644 $(DESTDIR)$(inst_libdir)/libgcc_eh.a
|
|
|
|
+ $(RANLIB) $(DESTDIR)$(inst_libdir)/libgcc_eh.a
|
|
|
|
+
|
|
|
|
parts="$(INSTALL_PARTS)"; \
|
|
|
|
for file in $$parts; do \
|
|
|
|
rm -f $(DESTDIR)$(inst_libdir)/$$file; \
|
2023-05-15 08:15:31 +00:00
|
|
|
--
|
|
|
|
2.40.1
|
|
|
|
|