From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id E35AD3857C74 for ; Mon, 23 Aug 2021 01:43:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E35AD3857C74 Date: Sun, 22 Aug 2021 21:43:24 -0400 From: Mike Frysinger To: Olivier Galibert Cc: libc-alpha@sourceware.org Subject: Re: [PATCH] Make using non-default as/ld/etc easier. Message-ID: Mail-Followup-To: Olivier Galibert , libc-alpha@sourceware.org References: <20210822071127.490511-1-galibert@pobox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210822071127.490511-1-galibert@pobox.com> X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP 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: Mon, 23 Aug 2021 01:43:58 -0000 On 22 Aug 2021 09:11, 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. i don't think we need configure flags for these. we don't have them for CC or CXX or CPP. you just need to declare AC_ARG_VAR on these and omit the AC_ARG_WITH logic. -mike