DSO and wrapper of a library

Tollef Fog Heen tfheen at err.no
Wed Aug 18 04:39:34 PDT 2010


]] Vincent Torri 

| On Wed, Aug 18, 2010 at 10:54 AM, Tollef Fog Heen <tfheen at err.no> wrote:
| 
| > ]] Vincent Torri
| >
| > | Another thing I forget to mention: edbus is used in a program, and that
| > | program  uses directyly some dbus calls. Which is certainly the problem.
| >
| > Then it should link directly against libdbus as well as libedbus.
| 
| so, how should the .pc of edbus can be fixed ?

No.  If the application chooses to use dbus functions directly, it
should call pkg-config --libs dbus-1 edbus, not just pkg-config --libs
edbus.  (And ditto for --cflags).  If edbus wants to force apps to link
to dbus-1 as well as itself, it should have Requires: dbus-1.  It should
not add -ldbus-1 on the Libs line.

-- 
Tollef Fog Heen
UNIX is user friendly, it's just picky about who its friends are


More information about the pkg-config mailing list