From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 20114 invoked from network); 14 Jan 2021 08:09:55 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 14 Jan 2021 08:09:55 -0000 Received: (qmail 23662 invoked by uid 550); 14 Jan 2021 08:09:52 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 23644 invoked from network); 14 Jan 2021 08:09:51 -0000 Date: Thu, 14 Jan 2021 09:09:39 +0100 From: Szabolcs Nagy To: patrick.oppenlander@gmail.com Cc: musl@lists.openwall.com Message-ID: <20210114080939.GA5766@port70.net> Mail-Followup-To: patrick.oppenlander@gmail.com, musl@lists.openwall.com References: <20210114040341.2524044-1-patrick.oppenlander@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210114040341.2524044-1-patrick.oppenlander@gmail.com> Subject: Re: [musl] [PATCH] install symlink to liblto_plugin.so into lib/bfd-plugins * patrick.oppenlander@gmail.com [2021-01-14 15:03:42 +1100]: > From: Patrick Oppenlander > > 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 file < BASE-VER does not do anything useful for me, did you mean cat BASE-VER ? this does not work if different TARGETs are installed to the same OUTPUT or is the plugin independent from target? then maybe a copy would be better than a symlink > > ifneq ($(LINUX_SRCDIR),) > TARGET_ARCH = $(firstword $(subst -, ,$(TARGET))) > -- > 2.30.0