diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-12-18 04:30:47 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2020-12-18 04:30:59 -0800 |
commit | eba7b68cb023add7bdcbcc79ac6f3ce8e50952e1 (patch) | |
tree | 9bd4c048731e8f2329e2e25102e907a9c7924ceb /ld/Makefile.am | |
parent | 04f8967487515179cc6dfc7c828f77eeb75c08d3 (diff) | |
download | gdb-eba7b68cb023add7bdcbcc79ac6f3ce8e50952e1.zip gdb-eba7b68cb023add7bdcbcc79ac6f3ce8e50952e1.tar.gz gdb-eba7b68cb023add7bdcbcc79ac6f3ce8e50952e1.tar.bz2 |
ld: Build and install only unversioned libdep
Build only unversioned libdep and remove the installed libdep.la since
only a single libdep.so is needed.
PR ld/27082
* Makefile.am
(libdep_la_LDFLAGS): Add -module -avoid-version.
(libdep_la_LINK): New.
(install-data-local): Depend on $(install-bfdpluginLTLIBRARIES)
and remove libdep.la.
Diffstat (limited to 'ld/Makefile.am')
-rw-r--r-- | ld/Makefile.am | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ld/Makefile.am b/ld/Makefile.am index 2f59ee6..73144e7 100644 --- a/ld/Makefile.am +++ b/ld/Makefile.am @@ -1001,7 +1001,11 @@ libldtestplug4_la_LDFLAGS = -no-undefined -rpath /nowhere bfdplugindir = $(libdir)/bfd-plugins bfdplugin_LTLIBRARIES = libdep.la libdep_la_SOURCES = libdep_plugin.c -libdep_la_LDFLAGS = -no-undefined -rpath /nowhere +libdep_la_LDFLAGS = -no-undefined -rpath /nowhere -module -avoid-version +libdep_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + --tag=disable-static \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(libdep_la_LDFLAGS) $(LDFLAGS) -o $@ # DOCUMENTATION TARGETS # Manual configuration file; not usually attached to normal configuration, @@ -1060,11 +1064,12 @@ 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.la # Stuff that should be included in a distribution. The diststuff # target is run by the taz target in ../Makefile.in. |