Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20210128231732.1143887-1-patrick.oppenlander@gmail.com>
Date: Fri, 29 Jan 2021 10:17:33 +1100
From: patrick.oppenlander@...il.com
To: musl@...ts.openwall.com
Cc: Patrick Oppenlander <patrick.oppenlander@...il.com>
Subject: [PATCH] copy liblto_plugin.so into lib/bfd-plugins

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

Updated to use $(shell cat) instead of GNU make $(file ...) function.

Also, a gentle ping on this.

Apply using --scissors.

---8<---

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

With this file 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..045c4c8 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
+	cp -L $(DESTDIR)$(OUTPUT)/libexec/gcc/$(TARGET)/$(shell cat src_gcc/gcc/BASE-VER)/liblto_plugin.so $(DESTDIR)$(OUTPUT)/lib/bfd-plugins
 
 ifneq ($(LINUX_SRCDIR),)
 TARGET_ARCH = $(firstword $(subst -, ,$(TARGET)))
-- 
2.30.0

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.