Re: pkg-config

Sven Luther <[email protected]> Tue, 29 Apr 2003 14:13:19 +0200
Newsgroups gmane.comp.video.gimp.windows.devel
Message-ID <20030429121319.GA31610@iliana>
On Tue, Apr 29, 2003 at 12:52:46PM +0100, J. Ali Harlow wrote:
> 
> On 2003.04.29 12:46 Sven Luther wrote:
> > On Tue, Apr 29, 2003 at 10:47:57AM +0100, J. Ali Harlow wrote:
> 
> > That said, why do we really need to patch pkg-config ? We could simply
> > call it either with the
> > 
> >   --define-variable=VARIABLENAME=VARIABLEVALUE
> >   
> > argument to modify the prefix, or using the PKG_CONFIG_PATH env variable
> > to point at the .pc files location ? Yep it seems to work :
> 
> Shrug. I find it simpler and I prefer not to have to put --define-variable...
> into all my application makefiles (I do define PKG_CONFIG_PATH in the
> makefiles, so it wouldn't actually make any real difference).

Maybe a new environment variable which will do at the same time
PKG_CONFIG_PATH and --define-variable ? Call it PKG_CONFIG_PREFIX, set
it to the root of your cross install, and have PKG_CONFIG_LIBDIR be
$PKG_CONFIG_PREFIX/lib and PKG_CONFIG_PATH be $PKG_CONFIG_LIBDIR/pkgconfig. 
and the prefix field in the each .pc file will be modified accordyingly.
But then, your patch do something similar, doesn't it ?

BTW, any idea why setting PKG_CONFIG_LIBDIR does not seem to work as
expected ?

> > > I can cross-compile Gtk+ 2.2.1 with three patches now (I haven't
> > > yet got around to submitting these but you can have copies if
> > > you want them).
> > 
> > Yes, please.
> 
> So attached.

Ok, thanks.

> > > Last time I tried to cross-compile Glib I failed,
> > > but I know that Owen has put a lot of work into improving the
> > > situation since then so things may well have moved on. I haven't
> > > tried to cross-compile any of the lower libraries yet.
> > 
> > Which lower libraries ? libicon and libintl ?
> 
> Yup. The full list for Gtk+ 2.2.1 is Gtk+, Glib, atk, pango,
> libintl, libiconv and freetype.

and libiconv is in truth gettext.

Ok.

Friendly,

Sven Luther