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

Robert Watson robert at fledge.watson.org
Tue Nov 17 09:07:00 PST 2009

On Tue, 17 Nov 2009, Mario Schwalbe wrote:

> Peter O'Gorman schrieb:
>> You should add -Wl,-rpath,/path/to/libkqueue/libdir or similar to LDFLAGS 
>> at configure time when building libdispatch. Or, of course, add the 
>> directory to the default loader search path in ld.so.conf.
> Doesn't -L/path/to/libkqueue/libdir work as well? Of course, I could also 
> use LDFLAGS, since I only need the -L-part of $(KQUEUE_LIBS). The -l-part is 
> superfluous, as Robert pointed out.
> So which variable is better?

But this still leaves you with a binary that depends on a library in a 
non-standard prefix -- I'm not sure that "fixing" the binary to link when it 
can't run is an improvement?  Having it added explicitly to the configure 
command line makes it clear to the user/administrator/rebundler that the 
alternate library path run-time property that will also be required to use the 
binary later.

Robert N M Watson
Computer Laboratory
University of Cambridge

More information about the libdispatch-dev mailing list