What's up with the list?

Erik de Castro Lopo mle+tools at mega-nerd.com
Sat Oct 18 14:17:02 PDT 2008

Matěj Týč wrote:

> I would like to know whether my ideas have some support among people who
> decide about pkg-config future.
> I would like to have support for CPPFLAGS, CFLAGS (currently it is
> everything ), CXXFLAGS and LDFLAGS. 

I wasn't following this part of the thread too closely, but I don't
remember seeing any concrete use case for this.

Specifically, you have to show at least one case where you need a
separate CPPFLAGS or CXXFLAGS where the same result can't be achieved
with CFLAGS.

Similarly, for LDFLAGS, you need to show a case where you need a 
separate LDFLAGS that is different from what --libs produces.

> I would like pkg-config to produce <host>-pkg-config executable so that
> the user doesn't have to do it for himself.

For which <host>? Are you really suggesting that the pkgconfig 
package supply scripts for 100 different cross compilers? What
about people who never use cross compilers? They don't want those
hundreds of scripts.

> Next, I would like to search for that executable (or link) in the
> $prefix directory when using pkg-config with autotools scripts.

The $prefix directory is thw wrong place for it because the $prefix
directory contains the (in this case cross) compiler binaries.
Instead, you want that script somewhere on your path, preferably
the same place where your other cross compiler tools are.

> This is really neccessarry for smooth cross-compilation, am I wrong?

You, yourself can set up a <host>-pkg-config file now without
involving anyone else.

> Next, I don't like dependency on popt and glib (it makes compilation
> under Windows quite troublesome).

So cross compile it from Linux.

Its important to realise that most people (me included) don't consider
pkg-config broken so see nothing to fix.

> I would like to do something, but I would like to know whether it is
> welcomed or not first.

You seem to be seeing problems that everyone else took 10 minutes
to work around and then move on from.

Erik de Castro Lopo
"The question of whether a computer can think is no more interesting
than the question of whether a submarine can swim." -- edsger dijkstra

More information about the pkg-config mailing list