From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by sourceware.org (Postfix) with ESMTPS id 8EA8B3858417 for ; Sun, 22 Aug 2021 20:15:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8EA8B3858417 Received: by mail-pj1-x1030.google.com with SMTP id u11-20020a17090adb4b00b00181668a56d6so4470570pjx.5 for ; Sun, 22 Aug 2021 13:15:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Xsp2IrCfTYAvBfa9faMlh7UWaPjsfz1kig6NQHo8a+0=; b=gAYkDJvBdG3JS2pNjplO9HJjoAe81gcyretLRol0iOr2KnohzaAyYmjiPQ0PMgoIwj hGgdlLwjJ+IFQ38dudaopuwR/gXH5XaBbmKDg2KskkcOB5YHWQ69hPOCKpHPq1fs+VcI rwShjr86MzNi5CCcHBnjl+jngs77ydK6/0ptUPRkJXbWIf1KPPkhbgttiqfLGXF/tN6j BmC6hm1NFdhHbKxAowk69MMBYUEI+EKZCXpkg5KKQZm0J7qsJAs7BhC4o+KIsV14TcAz xnDqTfZZ5bWvrH4fYV7LitaqpUdLPky3zE30e8DNhdJwORYHcb73hWLW297A9a/2/dwL bs4Q== X-Gm-Message-State: AOAM532ZudI5w4W7tTpBq9IG1QgHPrmBf/pSRT0DZoxlNPnYlXJXwbP1 ZXN/2e+4UVMFrUaQSjICmrn0JQ== X-Google-Smtp-Source: ABdhPJwI1d1uVcQXFaIejheAEdW797m+FSvn1i6p5cdHWmlUsd374DAkKEr6gEshnhlB8aiGv7gtoA== X-Received: by 2002:a17:90a:c708:: with SMTP id o8mr13988075pjt.16.1629663305162; Sun, 22 Aug 2021 13:15:05 -0700 (PDT) Received: from google.com ([2620:15c:2ce:200:b4da:6007:fb5d:c9e3]) by smtp.gmail.com with ESMTPSA id y27sm6814684pfa.29.2021.08.22.13.15.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Aug 2021 13:15:04 -0700 (PDT) Date: Sun, 22 Aug 2021 13:14:59 -0700 From: Fangrui Song To: Olivier Galibert Cc: libc-alpha@sourceware.org Subject: Re: [PATCH] Make using non-default as/ld/etc easier. Message-ID: <20210822201459.x7e47t67msreehkr@google.com> References: <20210822071127.490511-1-galibert@pobox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20210822071127.490511-1-galibert@pobox.com> X-Spam-Status: No, score=-19.7 required=5.0 tests=BAYES_00, DKIMWL_WL_MED, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Aug 2021 20:15:15 -0000 On 2021-08-22, Olivier Galibert via Libc-alpha wrote: >Add the configure parameters >--with-{as,ld,ar,objdump,objcopy,gprof}=path to optionally force the >path for these programs without having to tweak the output of >$CC -print-prog-name in some way. > >In addition, when --with-{as,ld} is used the corresponding program >version is not check. The user gets to keep all the pieces if it >blows. > >In practice, according to a build log on x86-64, $AS and $LD are never >used directly. $AR, $OBJDUMP and $OBJCOPY are though, and the llvm >variants don't seem to have any issue. > >Signed-off-by: Olivier Galibert Thanks:) This will make https://sourceware.org/pipermail/libc-alpha/2021-August/129864.html ("[PATCH v2 0/3] Allow LLD 13.0.0 and improve compatibility with gold and clang") easier to use. Currently I do ``` sudo ln -sf ~/Stable/bin/lld /usr/local/bin/ld or sudo ln -sf /usr/bin/ld.bfd /usr/local/bin/ld `` when switching between GNU ld and LLD...