[libdispatch-dev] [PATCH] missing kqueue libs in testing/Makefile.am

Mark Heily mark at heily.com
Tue Nov 17 20:26:13 PST 2009

Robert Watson wrote:
> On Mon, 16 Nov 2009, Mario Schwalbe wrote:
>> added libkqueue library variable to testing/Makefile.am.
> In general, the testing tools don't directly depend on kqueue (with the 
> exception of dispatch_cffd, which is not portable off of Mac OS X). 
> Normally, libdispatch should depend on libkqueue, meaning that 
> applications linked aginst libdispatch shouldn't need their own 
> dependency declared unless they might use libkqueue but no libdispatch.  

I believe that libkqueue r101 solves this problem by changing the output of 
`pkg-config --libs` from this:

    -L${libdir} -lkqueue

to this:


This allows libtool to generate a libdispatch.la that contains all of the 
dependencies for libkqueue. Here is an example of what it generates:

   # Libraries that this one depends upon.
   dependency_libs=' /tmp/bar/lib/libkqueue.la -L/tmp/bar/lib -lpthread -lrt'

Note that in order for pkg-config to find the libkqueue in /tmp/bar, the 
PKG_CONFIG_PATH environment variable must be set like this:

	PKG_CONFIG_PATH=/tmp/bar/lib/pkgconfig ./configure

Let me know if this works for you.


  - Mark

More information about the libdispatch-dev mailing list