Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3382565pxb; Tue, 19 Apr 2022 00:53:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNjclSqvmx2zPpvtMvbLxxkKKdarm6VfHNaJcrtGhLQPAcV0pa99EfSUfrieBvniUYMgJ8 X-Received: by 2002:a17:90b:4b05:b0:1d2:3d1e:fbfb with SMTP id lx5-20020a17090b4b0500b001d23d1efbfbmr16088746pjb.33.1650354788114; Tue, 19 Apr 2022 00:53:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650354788; cv=none; d=google.com; s=arc-20160816; b=XCD2tje7nNcaw3F2SFBjw/yKrTyXI66ejlKz4owJ4aCUoZdLYM5lVtyv5eyXV7ODmQ DQfkeZ+Cns8nXo3l2+rvKNf/RjTYu2DfEPHAw5T+37YGsKx47FX5oXR+x4xMlTByqRJx O5nB8dTCH41tkmUfyhT3Xpc6XXp2dhN7kTYEd/DWR6cAh4FX7e01+RNkPXIR7u73Ibx6 ZwzR5mn6IUHCXeHEffMVZDrm5L0V8/LjypGiNganMPB3FSxyC7dIx5bBG+I/zGnqRiWR W7pRkRNt1q4+H810qK06920pNdnSm1v9P/MQg3Tp+wSS2VLCdcTyoo8NGl2EQr5VT9Vs Q12w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=lGJhMdAJv5WmJj9r5npXAjtxtT+hvT5WYeWcBlfZ81A=; b=LdgKCv2wM4o/ZIXBm1HBN9kWLfFYJBBD1XIFBg31kVlIfrA06J0o9jpWWfIY3SO5+o 1qJVkm7aerVjg1HXV9lOG4hliQAw0XHb9rBl7WFmDDkc8ak2wqqKg0i3dXAK516htXpS 6msHAFpakI7uTki0Q5GIUSrLXZ+GWu8LDIAZPPMrAw+8zJZIXZvt3H5lLAQj4/5kXOqe dEiZI6zNoGZ95eFsAGnRYqktBShX+oLyLGo5FPNybvFQUVjAXdl/7GLmTSApsN64Flqd cqLpp1gp+eL5mR7D+zpBxgbOUnmXH7kTq0DXCYtxwmeLCjXpGK9jXgxq7W0/x+XsM87J /hNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vUXlltcR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id il10-20020a17090b164a00b001d2e1ad5c49si571965pjb.119.2022.04.19.00.52.53; Tue, 19 Apr 2022 00:53:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vUXlltcR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245633AbiDRODr (ORCPT + 99 others); Mon, 18 Apr 2022 10:03:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244744AbiDRNp1 (ORCPT ); Mon, 18 Apr 2022 09:45:27 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55571326CC; Mon, 18 Apr 2022 06:00:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 07DAEB80E4B; Mon, 18 Apr 2022 13:00:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E868C385A1; Mon, 18 Apr 2022 13:00:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650286816; bh=3gzAc5HRkotLkERtM6Li6802T+AHua+fysF9OPRupfI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vUXlltcRj/S4dVbOUVvjr61bpuwBXKnS6r7Uf1vMKdIwOulaIRFscajzAnDnPJUHJ WVWE44aeFCxQMhVVrQ9zB5lyKdbdV7SA//6iyHEcxPFp3/Bv8S/CtnHiEnREPuyy00 K0KQxZqohph5RYJoJVfvD9UwIkVoAeRa8DXtpnKk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Adrian Hunter , Fangrui Song , Florian Fainelli , Ian Rogers , Jiri Olsa , John Keeping , Leo Yan , Michael Petlan , Namhyung Kim , Nathan Chancellor , Nick Desaulniers , Arnaldo Carvalho de Melo , Sedat Dilek Subject: [PATCH 4.14 252/284] tools build: Use $(shell ) instead of `` to get embedded libperls ccopts Date: Mon, 18 Apr 2022 14:13:53 +0200 Message-Id: <20220418121219.451238577@linuxfoundation.org> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220418121210.689577360@linuxfoundation.org> References: <20220418121210.689577360@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnaldo Carvalho de Melo commit 541f695cbcb6932c22638b06e0cbe1d56177e2e9 upstream. Just like its done for ldopts and for both in tools/perf/Makefile.config. Using `` to initialize PERL_EMBED_CCOPTS somehow precludes using: $(filter-out SOMETHING_TO_FILTER,$(PERL_EMBED_CCOPTS)) And we need to do it to allow for building with versions of clang where some gcc options selected by distros are not available. Tested-by: Sedat Dilek # Debian/Selfmade LLVM-14 (x86-64) Cc: Adrian Hunter Cc: Fangrui Song Cc: Florian Fainelli Cc: Ian Rogers Cc: Jiri Olsa Cc: John Keeping Cc: Leo Yan Cc: Michael Petlan Cc: Namhyung Kim Cc: Nathan Chancellor Cc: Nick Desaulniers Link: http://lore.kernel.org/lkml/YktYX2OnLtyobRYD@kernel.org Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Greg Kroah-Hartman --- tools/build/feature/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/tools/build/feature/Makefile +++ b/tools/build/feature/Makefile @@ -184,7 +184,7 @@ strip-libs = $(filter-out -l%,$(1)) PERL_EMBED_LDOPTS = $(shell perl -MExtUtils::Embed -e ldopts 2>/dev/null) PERL_EMBED_LDFLAGS = $(call strip-libs,$(PERL_EMBED_LDOPTS)) PERL_EMBED_LIBADD = $(call grep-libs,$(PERL_EMBED_LDOPTS)) -PERL_EMBED_CCOPTS = `perl -MExtUtils::Embed -e ccopts 2>/dev/null` +PERL_EMBED_CCOPTS = $(shell perl -MExtUtils::Embed -e ccopts 2>/dev/null) FLAGS_PERL_EMBED=$(PERL_EMBED_CCOPTS) $(PERL_EMBED_LDOPTS) $(OUTPUT)test-libperl.bin: