mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] [PATCH] install symlink to liblto_plugin.so into lib/bfd-plugins
@ 2021-01-14  4:03 patrick.oppenlander
  2021-01-14  8:09 ` Szabolcs Nagy
  0 siblings, 1 reply; 7+ messages in thread
From: patrick.oppenlander @ 2021-01-14  4:03 UTC (permalink / raw)
  To: musl; +Cc: Patrick Oppenlander

From: Patrick Oppenlander <patrick.oppenlander@gmail.com>

The ar, nm and ranlib tools will automatically load plugins from the
lib/bfd-plugins directory if present.

With this symlink in place it is no longer necessary to use the gcc-
prefixed versions of these tools (or the --plugin argument) to handle
LTO objects.
---
 litecross/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/litecross/Makefile b/litecross/Makefile
index 8ec0ed2..8bae518 100644
--- a/litecross/Makefile
+++ b/litecross/Makefile
@@ -254,6 +254,8 @@ install-binutils: | obj_binutils/.lc_built
 install-gcc: | obj_gcc/.lc_built
 	cd obj_gcc && $(MAKE) MAKE="$(MAKE) $(LIBTOOL_ARG)" DESTDIR=$(DESTDIR)$(OUTPUT) install
 	ln -sf $(TARGET)-gcc $(DESTDIR)$(OUTPUT)/bin/$(TARGET)-cc
+	mkdir -p $(DESTDIR)$(OUTPUT)/lib/bfd-plugins
+	ln -sf ../../libexec/gcc/$(TARGET)/$(file < src_gcc/gcc/BASE-VER)/liblto_plugin.so $(DESTDIR)$(OUTPUT)/lib/bfd-plugins
 
 ifneq ($(LINUX_SRCDIR),)
 TARGET_ARCH = $(firstword $(subst -, ,$(TARGET)))
-- 
2.30.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-01-28 23:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-14  4:03 [musl] [PATCH] install symlink to liblto_plugin.so into lib/bfd-plugins patrick.oppenlander
2021-01-14  8:09 ` Szabolcs Nagy
2021-01-14 10:24   ` Patrick Oppenlander
2021-01-15  2:32     ` [musl] [PATCH] copy " patrick.oppenlander
2021-01-15  2:56       ` Fangrui Song
2021-01-15  3:30         ` Patrick Oppenlander
2021-01-28 23:17       ` patrick.oppenlander

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).