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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,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 1784 invoked from network); 15 Jan 2021 03:31:18 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 15 Jan 2021 03:31:18 -0000 Received: (qmail 5563 invoked by uid 550); 15 Jan 2021 03:31:11 -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 5545 invoked from network); 15 Jan 2021 03:31:11 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=iMlJc2bs6h1uWmyyTrxEurH5Nh7BFkrJzDfXw7XJg2w=; b=F3yLOsiSfL5KkUi1KpbLBqpw0w1xLaA7B3CA6u6/bWnKmzs750IQrAiJwBTirekaIH hS18Nm0y1dOllmJDCSEJXOei1zUBAmDxs/tl3lqJnzQ6mSuBu3/CKrZH4BDub/79b0uB 4QgmLNmQis9ICSjw+73iOcKE2M7OyJNYrqkxPm4uBZ40eic5O9C2xv/oVwwpfUvWwYsU 1EUy4mlUql33D42SRvSNwL/oF/se5feEU6frcSEXCQOOL+m7m7WVhDCD2cshwMTx4zL2 +727yuApmD6cLmiQqAUkaM0gh6hLV1CIozPlrDfp4/NwgmrfQdxL7Y+Tm4AK8/LL3oCM SJAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=iMlJc2bs6h1uWmyyTrxEurH5Nh7BFkrJzDfXw7XJg2w=; b=gjZmPmIlpim3p//ebtl4vODTeej9nclHEzjGtJ2FAirM8iggsFgyn/N8GyEmdLhMFm flUCXk6IiLSOIUQua3J6S2SH+EoQbRK7kWC82qkBSTXNbmhrX+fsONx7Arq4fgtMkNuI faOOdw5vBmTz96twmpDt/HQ51XskzZHbN0X8lcz+PG+Ccpb2jqOpb9aSXMNQywxomlaY VNdwyFHIbjGVHue7Mu2whVhnME6psMA23g3akNsvuLzi+mm7Hr7VtAGQby42OKRKRFu5 7NzGhfuQ8ki0/8gf7CvFZWvKh+z2YxogF/4XVVDydPUfKlG9KNVxpj6Bj3sY0srFmUQd /y7A== X-Gm-Message-State: AOAM530Gf4vb3bAyN6hAQo5bwf0/BqQlkjzATkRguxZeXTe0/hWePHeS C+MnCyINNjb7NXtqHv7XtgwCSNyOol+1TFNQRd0= X-Google-Smtp-Source: ABdhPJwP6wbUXWMCAvl0/H/mhb0zV/Padx5WhOQy0NL84+xxauWVUMNU6FZz9t6yLqvm+wTyYATvcDPr0JUpWq8sk2M= X-Received: by 2002:a17:906:a00a:: with SMTP id p10mr7476663ejy.312.1610681459664; Thu, 14 Jan 2021 19:30:59 -0800 (PST) MIME-Version: 1.0 References: <20210115023237.2784895-1-patrick.oppenlander@gmail.com> In-Reply-To: From: Patrick Oppenlander Date: Fri, 15 Jan 2021 14:30:48 +1100 Message-ID: To: Fangrui Song Cc: musl@lists.openwall.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [musl] [PATCH] copy liblto_plugin.so into lib/bfd-plugins On Fri, Jan 15, 2021 at 1:56 PM Fangrui Song wrote: > > On Thu, Jan 14, 2021 at 6:33 PM wrote: > > > > From: Patrick Oppenlander > > > > 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..3b797d1 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)/$(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 > > > > Your 'file' seems different. https://www.darwinsys.com/file/ (The Fine > Free File Comman) does not support `file < ...` In this context $(file ...) is a make function, not a shell command. https://www.gnu.org/software/make/manual/html_node/File-Function.html Patrick