Hi Hendrik,

> 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.

only because Debian thinks this is the right way, it must not be true.
Where is the pkg-config documentation that shows this is the correct way
to achieve this?

Regards

Marcel



-------------------------------------------------------------------------
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
[email protected]
http://lists.sourceforge.net/lists/listinfo/openobex-users

Reply via email to