component(developer/golang-123): Add Component
[oi-userland.git] / components / developer / gcc-10 / patches / 0027-Make-install-strip-target-work-for-libobjc.patch
blobb36a0ca253a3829f6e02ac0def2693ffeb866970
1 From cf822698e3087b86c6d987a791de22a313bc83d5 Mon Sep 17 00:00:00 2001
2 From: Keith Marshall <keith.marshall@mailinator.com>
3 Date: Fri, 15 Nov 2019 12:21:51 +0000
4 Subject: [PATCH 27/34] Make install-strip target work for libobjc
6 See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54720
7 libobjc install-strip target not populated
8 ---
9 libobjc/Makefile.in | 12 +++++++-----
10 1 file changed, 7 insertions(+), 5 deletions(-)
12 diff --git a/libobjc/Makefile.in b/libobjc/Makefile.in
13 index 46c85407010..280cd01ee51 100644
14 --- a/libobjc/Makefile.in
15 +++ b/libobjc/Makefile.in
16 @@ -308,14 +308,16 @@ $(srcdir)/configure: @MAINT@ configure.ac $(srcdir)/aclocal.m4
17 $(srcdir)/aclocal.m4: @MAINT@ $(aclocal_deps)
18 cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
20 -install: install-libs install-headers
21 +install-strip: INSTALL_STRIP_FLAG = -s
22 +install install-strip: install-libs install-headers
24 install-libs: installdirs
25 $(SHELL) $(multi_basedir)/mkinstalldirs $(DESTDIR)$(toolexeclibdir)
26 - $(LIBTOOL_INSTALL) $(INSTALL) libobjc$(libsuffix).la $(DESTDIR)$(toolexeclibdir);
27 + $(LIBTOOL_INSTALL) $(INSTALL) $(INSTALL_STRIP_FLAG) \
28 + libobjc$(libsuffix).la $(DESTDIR)$(toolexeclibdir);
29 if [ "$(OBJC_BOEHM_GC)" ]; then \
30 - $(LIBTOOL_INSTALL) $(INSTALL) libobjc_gc$(libsuffix).la \
31 - $(DESTDIR)$(toolexeclibdir);\
32 + $(LIBTOOL_INSTALL) $(INSTALL) $(INSTALL_STRIP_FLAG) \
33 + libobjc_gc$(libsuffix).la $(DESTDIR)$(toolexeclibdir);\
35 $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO="$@"
36 @-$(LIBTOOL) --mode=finish $(DESTDIR)$(toolexeclibdir)
37 @@ -328,7 +330,7 @@ install-headers:
38 $(INSTALL_DATA) $${realfile} $(DESTDIR)$(libsubdir)/$(includedirname)/objc; \
39 done
41 -check uninstall install-strip dist installcheck installdirs:
42 +check uninstall dist installcheck installdirs:
44 mostlyclean:
45 -$(LIBTOOL_CLEAN) rm -f libobjc$(libsuffix).la libobjc_gc$(libsuffix).la *.lo
46 --
47 2.31.1