Hi,

there are currently big discussions in Debian changing .pc files to correctly 
show the _minimal_ set of libraries _needed_ for linking.

I patched openobex.pc.in to achieve the desired set:
$ pkg-config --libs openobex
-lopenobex
$ pkg-config --libs --static openobex
-lopenobex -lbluetooth -lusb

The full set is only needed for static linking, for dynamic linking, the ld.so 
will take care of recursivly doing it.
This has the advantage of less package rebuilds if the bluetooth or usb 
package changes its soname (only openobex package must be rebuilt).
This is better than using the ld hack --as-needed.
If you use libusb or libbluetooth symbols, you better manually link to it 
anyway!

I hope that you apply this patch. Anyway, I will apply it to my Debian 
package.

Have fun...

HS

PS: Christian, did you see the mail about the patches for obexftp?
Index: libopenobex-1.3/openobex.pc.in
===================================================================
--- libopenobex-1.3.orig/openobex.pc.in	2006-09-26 23:25:33.218999750 +0200
+++ libopenobex-1.3/openobex.pc.in	2006-09-26 23:29:38.366320500 +0200
@@ -6,6 +6,6 @@
 Name: OpenOBEX
 Description: Free implementation of the Object Exchange protocol
 Version: @VERSION@
-Requires: @REQUIRES@
 Libs: -L${libdir} -lopenobex
+Libs.private: @BLUEZ_LIBS@ @USB_LIBS@
 Cflags: -I${includedir}
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Openobex-users mailing list
Openobex-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/openobex-users

Reply via email to