lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On Thu, Mar 26, 2015 at 12:24 PM, Nicola Fontana <> wrote:
> pkg-config is just a piece of C code (just like Lua) that makes life
> (much) easier to packagers, period. When you are cross-compiling (and
> guess what I'm doing right now?) it is not usefull, it is essential!

It is an unusually awkward piece of C code:

$ ldd $(which pkg-config)  (taking out linux-specific stuff) => /lib/x86_64-linux-gnu/
(0x00007fa31b16a000) => /lib/x86_64-linux-gnu/ (0x00007fa31af5e000) => /lib/x86_64-linux-gnu/ (0x00007fa31a959000) => /lib/x86_64-linux-gnu/

that Glib dependency is the nasty one, a very Gnome-centric thing. To
build pkg-config, you need Glib. To build Glib, you need pkg-config

If you look at the end of 'man pkg-config' you'll see that it has been
re-written a number of times. I suspect that Havoc Pennington was
having too much fun.

I did a very functional clone in 500 lines of C, when testing llib,
with absolutely no dynamic dependencies.  I imagine a smart person
could do a Lua version in about that as well, but do note that the
manual lies about some important things.

steve d.