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