Re: pkg-config

"J. Ali Harlow" <[email protected]> Tue, 29 Apr 2003 13:20:15 +0100
Newsgroups gmane.comp.video.gimp.windows.devel
Message-ID <[email protected]>
On 2003.04.29 13:13 Sven Luther wrote:

> 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 ?

I don't think it would be much use to me. My application makefiles build
both native (ie., Linux) and mingw32 versions of the application so no
one setting of such an environment variable would work. What I probably
should do is create a PKG_CONFIG_MINGW32_PATH variable that my makefiles
could use, but my configuration management system uses a standard path
to all managed products via a directory of symbolic links which are updated
to control which version of a product the current build is against so
there would be no great advantage.

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

No, sorry. Not something I've had cause to play with.

-- 
Ali Harlow                              Email: [email protected]
Research programmer                     Tel:   (020) 7040 4348
Applied Vision Research Centre          Intl: +44 20 7040 4348
City University                         Fax:   (020) 7040 5515
London                                  Intl: +44 20 7040 5515