[PATCH] ld: Don't install unnecessary libdep files
H.J. Lu
hjl.tools@gmail.com
Wed Dec 16 14:50:09 GMT 2020
Remove libdep.*a, libdep.so and libdep.so.0 since only libdep.so.0.0.0
is needed.
PR ld/27082
* Makefile.am (install-data-local): Depend on
$(install-bfdpluginLTLIBRARIES). Remove libdep.*a, libdep.so
and libdep.so.0.
---
ld/Makefile.am | 5 ++++-
ld/Makefile.in | 5 ++++-
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/ld/Makefile.am b/ld/Makefile.am
index 2f59ee6169..ec906f7dfd 100644
--- a/ld/Makefile.am
+++ b/ld/Makefile.am
@@ -1060,11 +1060,14 @@ install-exec-local: ld-new$(EXEEXT) install-binPROGRAMS
fi; \
fi
-install-data-local:
+install-data-local: install-bfdpluginLTLIBRARIES
$(mkinstalldirs) $(DESTDIR)$(scriptdir)/ldscripts
for f in ldscripts/* ; do \
$(INSTALL_DATA) $$f $(DESTDIR)$(scriptdir)/$$f ; \
done
+ rm -f $(DESTDIR)$(bfdplugindir)/libdep.*a
+ rm -f $(DESTDIR)$(bfdplugindir)/libdep.so
+ rm -f $(DESTDIR)$(bfdplugindir)/libdep.so.0
# Stuff that should be included in a distribution. The diststuff
# target is run by the taz target in ../Makefile.in.
diff --git a/ld/Makefile.in b/ld/Makefile.in
index c744701e0e..e4b98f362f 100644
--- a/ld/Makefile.in
+++ b/ld/Makefile.in
@@ -2655,11 +2655,14 @@ install-exec-local: ld-new$(EXEEXT) install-binPROGRAMS
fi; \
fi
-install-data-local:
+install-data-local: install-bfdpluginLTLIBRARIES
$(mkinstalldirs) $(DESTDIR)$(scriptdir)/ldscripts
for f in ldscripts/* ; do \
$(INSTALL_DATA) $$f $(DESTDIR)$(scriptdir)/$$f ; \
done
+ rm -f $(DESTDIR)$(bfdplugindir)/libdep.*a
+ rm -f $(DESTDIR)$(bfdplugindir)/libdep.so
+ rm -f $(DESTDIR)$(bfdplugindir)/libdep.so.0
diststuff: info $(EXTRA_DIST)
# Both info (ld.info) and ld.1 depend on configdoc.texi.
--
2.29.2
More information about the Binutils
mailing list