pkg-config v0.26 released

LRN lrn1986 at gmail.com
Mon May 16 09:22:07 PDT 2011


On 16.05.2011 20:13, James McKenzie wrote:
> On Mon, May 16, 2011 at 9:07 AM, LRN<lrn1986 at gmail.com>  wrote:
>> On 16.05.2011 19:48, James McKenzie wrote:
>>> On Mon, May 16, 2011 at 8:09 AM, LRN<lrn1986 at gmail.com>    wrote:
>>>> On 16.05.2011 18:31, James McKenzie wrote:
>>>>> On Sun, May 15, 2011 at 8:58 PM, Tollef Fog Heen<tfheen at err.no>
>>>>>   wrote:
>>>>>> ]] "Daniel Macks"
>>>>>>
>>>>>> | Well sure, if you want a glib/gio that has no dbus support, something
>>>>>> | that until today would automatically be built, and with a certain
>>>>>> pcre
>>>>>> | model that user might not want.
>>>>>>
>>>>>> Yes, and I think that's fine for bootstrapping.
>>>>> However, if I want to build pkg-config without building glib2 (like on
>>>>> my Mac for instance) why should I be forced to build glib2?  Again,
>>>>> all I require is a CLI version of pkg-config and that is what I SHOULD
>>>>> BE ABLE TO GET.  Got the picture?
>>>> You are forced to build glib2 because pkg-config DEPENDS ON GLIB. Got the
>>>> picture?
>>> Ok.  Explain the circular dependency issue a little better then.
>> OK.
>>> If it needs a full
>>> blown glib2 installation,
>> It does.
>>>   then we have a major problem because glib2
>>> does and has for some time depended on a fully installed pkg-config.
>> It doesn't. It can, optionally, use pkg-config, but can do without it (you
>> might need to call glib configure script with a couple of environment
>> variables set to help it locate the libraries, but that is not something out
>> of ordinary).
>>
> There is the clarification I was looking for.  Can you provide a
> sample configuration line without pkg-config?
These might interest you:
   ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
   ZLIB_LIBS   linker flags for ZLIB, overriding pkg-config
   PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
   PCRE_LIBS   linker flags for PCRE, overriding pkg-config
   DBUS1_CFLAGS
               C compiler flags for DBUS1, overriding pkg-config
   DBUS1_LIBS  linker flags for DBUS1, overriding pkg-config

Also this one:
   --with-pcre=[internal/system]
                           specify whether to use the internal or the
                           system-supplied PCRE library

And this is what i've been successfully using to build glib2 on Windows:
./configure --prefix=/mingw --enable-silent-rules --enable-threads 
--enable-man --with-threads=win32 --with-pcre=internal

(zlib is installed into /mingw, so configure picks it up effortlessly, i 
have no dbus and dbus support is disabled, pcre is internal - and that's 
about all dependencies, i think)

Run ./configure --help to see all the variables and options


More information about the pkg-config mailing list