Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp689979img; Wed, 20 Mar 2019 08:51:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqwb4tm3s0x7OnAAGEDNZ88PyXqS1de/T31MR4ETE0eqbgXahsylqaH5IiIQOgfKt12F70u/ X-Received: by 2002:a63:6a08:: with SMTP id f8mr8112621pgc.165.1553097082599; Wed, 20 Mar 2019 08:51:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553097082; cv=none; d=google.com; s=arc-20160816; b=DoOT/ahi/ATJKBC0yOtAkMcvZ7Z8GxCkPM2qBrWHFDZ1XKteND7LjUz3auSw4Lm/ze X2knpgzT0uvNFWs2GnA8lFb8pQm6+jZmO9d7jB5j2aBZmAs4/QFzmJZ7Q9hdNEaAtybf BUn9lPuvYOJzRC5DZw6gEo2Ov2msR3SPl/Ht58kkw9pIEereYIYrjd12qVSgHyxyVQ2s ukQHAXhRHgFrf3QKLqA8ebOqdw27LiwTMPnsoQgFIFmI1+PT+OhLYxC0+deEfSIZz4oq y6+gopRE4czGU14bSbApqOEktdOz+je7SWvm/SpsPKlsl6Oryqaq/f1/kvO0vqdNNwoP zmEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :organization:message-id:date:subject:cc:to:from; bh=AzXGfmGG/EszmUa2/8SoIY05A4uwd/3tFdzE+pzCBPc=; b=J6WQkFj1u9z2KjxVx9xwR9dHtF3mlOdgTrPArTe1bTduioGUZVij4TJPPwv/1Qa2xB DrrNaMyceCDx91xG53hMRrwmia0Y8FGR8y/mvCdUwXRUTOjXT9bte30R8CE66+12/c4f necFM9plJTAq2epESDdODTGLzYvDbwwUYvmiimwF1gordXcFfGWNH1MO5GDrK9sM7k6N xoLt2WIX17+8UMJtK22k7j5Ldi9v29zo03WdfICNfMWW8SFc0h6zF3uqY5W6/5y1TqVH pneulylKpYf9hsfOWsIzzachHefUfjuniCdnwx7IHVgyNH0kzXyxxaplNCCIpJ+9gm3l pLkw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2si1788654pgq.214.2019.03.20.08.51.06; Wed, 20 Mar 2019 08:51:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727068AbfCTPuZ (ORCPT + 99 others); Wed, 20 Mar 2019 11:50:25 -0400 Received: from mx1.emlix.com ([188.40.240.192]:39242 "EHLO mx1.emlix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726362AbfCTPuZ (ORCPT ); Wed, 20 Mar 2019 11:50:25 -0400 Received: from mailer.emlix.com (unknown [81.20.119.6]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.emlix.com (Postfix) with ESMTPS id AA01760972; Wed, 20 Mar 2019 16:50:22 +0100 (CET) From: Rolf Eike Beer To: Josh Poimboeuf Cc: Peter Zijlstra , Masahiro Yamada , Michal Marek , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] objtool: query pkg-config for libelf location Date: Wed, 20 Mar 2019 16:50:18 +0100 Message-ID: <13279932.E8cnC9vheV@devpool35> Organization: emlix GmbH In-Reply-To: <20190320153701.7wym7btpjshdujpz@treble> References: <3381642.TeJ1gWjbju@devpool35> <20190320153701.7wym7btpjshdujpz@treble> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2341083.vYKama657H"; micalg="pgp-sha256"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --nextPart2341083.vYKama657H Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Josh Poimboeuf wrote: > On Tue, Mar 19, 2019 at 08:20:12AM +0100, Rolf Eike Beer wrote: > > diff --git a/tools/objtool/Makefile b/tools/objtool/Makefile > > index c9d038f91af6..0c8dd1609348 100644 > > --- a/tools/objtool/Makefile > > +++ b/tools/objtool/Makefile > > @@ -25,14 +25,17 @@ LIBSUBCMD =3D $(LIBSUBCMD_OUTPUT)libsubcmd.a > >=20 > > OBJTOOL :=3D $(OUTPUT)objtool > > OBJTOOL_IN :=3D $(OBJTOOL)-in.o > >=20 > > +LIBELF_FLAGS =3D $(shell pkg-config libelf --cflags) > > +LIBELF_LIBS =3D $(shell pkg-config libelf --libs 2>/dev/null || echo -= lelf) >=20 > Should LIBELF_FLAGS also pipe stderr to /dev/null? Probably. New version in a minute. Thanks, Eike =2D-=20 Rolf Eike Beer, emlix GmbH, http://www.emlix.com =46on +49 551 30664-0, Fax +49 551 30664-11 Gothaer Platz 3, 37083 G=C3=B6ttingen, Germany Sitz der Gesellschaft: G=C3=B6ttingen, Amtsgericht G=C3=B6ttingen HR B 3160 Gesch=C3=A4ftsf=C3=BChrung: Heike Jordan, Dr. Uwe Kracke =E2=80=93 Ust-IdNr= =2E: DE 205 198 055 emlix - smart embedded open source --nextPart2341083.vYKama657H Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iLMEAAEIAB0WIQQ/Uctzh31xzAxFCLur5FH7Xu2t/AUCXJJhOgAKCRCr5FH7Xu2t /ESXA/9AO8tjkho+vP9MZppxojdHOFaDFK+666seGq4wWSyz6HM153myO4ZWJBD7 8pYynpB3kEStj966bFb5RacDfWVUOr+zVf8kTBCrlVEhHAxmOaj9PrDQwyetXO/x 5T40PgctbJlQ9I/I6hZmEXKqvZRvxPcQvq17780tE42AHWpQsA== =PRY/ -----END PGP SIGNATURE----- --nextPart2341083.vYKama657H--