[gst-devel] Re: builddirs (was Re: ATK dependency added to GTK+)

Erik Walthinsen omega at temple-baptist.com
Thu May 3 23:57:35 CEST 2001


On 3 May 2001, Havoc Pennington wrote:

> pkg-config may already support this; at least at one point, if you
> specified a module name ending in ".pc", it was taken as a filename
> instead of searching the module path.

But the key is that then the .pc must be treated differently.  An
installed .pc for GStreamer would give cflags and ldflags of
'-I/usr/include' and '-L/usr/lib -lgst'.  A builddir .pc would give
'-I<builddir>' and '<builddir>/gst/libgst.la'.  Other packages can be much
nastier if they aren't structured to roughly match the installed
hierarchy.

So pkg-config can be given an absolute path for a .pc, but it needs to
treat it a little differently.  With the -config patching I did, you'd add
a --prefix=<builddir> and it would compare against the builddir built into
it.  If they matched, it would respond with different cflags and ldflags.
Not pretty, since moving the builddir would break that, but pkg-config can
do it much better by definition.

      Erik Walthinsen <omega at temple-baptist.com> - System Administrator
        __
       /  \                GStreamer - The only way to stream!
      |    | M E G A        ***** http://gstreamer.net/ *****
      _\  /_






More information about the gstreamer-devel mailing list