From: Julien Cristau Subject: Re: [PATCH 2/3] libdrm_nouveau requires libdrm Date: Fri, 26 Feb 2010 19:50:45 +0100 Message-ID: <20100226185045.GG2927@patate.is-a-geek.org> References: <1267207644-498-1-git-send-email-jcristau@debian.org> <1267207644-498-2-git-send-email-jcristau@debian.org> <59ad55d31002261038r7d9770b0k449ddac1de7ce953@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <59ad55d31002261038r7d9770b0k449ddac1de7ce953@mail.gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.sourceforge.net To: Kristian =?iso-8859-1?Q?H=F8gsberg?= Cc: dri-devel@lists.sf.net List-Id: dri-devel@lists.freedesktop.org On Fri, Feb 26, 2010 at 13:38:59 -0500, Kristian H=F8gsberg wrote: > On Fri, Feb 26, 2010 at 1:07 PM, Julien Cristau wro= te: > > nouveau_drmif.h includes xf86drm.h. > = > If it's a source level dependency it should be a regular Requires: in > the .pc. Requires.private: is only for private libraries you link to > but don't expose their API in your header files. The idea is (AFAIK) > that you can ask pkg-config to list all libraries to link to for > static linking, in which case pkg-config needs a way to find all > needed libraries. It even looks like Requires.private has been > obsoleted by Libs.private in recent pkg-config. > = That's not what the pkg-config maintainer says... http://err.no/personal/blog/2008/Mar/25 Using Requires.private lets us get the necessary cflags, but avoids linking to the library if not using --static. Cheers, Julien ---------------------------------------------------------------------------= --- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev --