1/6/06, Matthieu Herrb <matthieu.herrb (AT) laas (DOT) frwrote:
I missed part of the discussion about your previous patch that already
tried to remove -lfreetype from Libs in cairo.pc, but I think its wrong:
- I don't understand how an application can use cairo libs without
linking explicitely against freetype, since some cairo libs call
freetype functions directly.
- one problem is that cairo provides several libs, with different
dependencies, but only one .pc file. So it has to take all dependencies
in account.
- the other problem is that BSD doesn't like to link depencencies
into a library. But this cannot be solved by pkg-config. We need to
patch libtool or automake to ignore '-l' options in pkg-config Libs when
producing a library instead of an executable.
So I think my patch was more correct. But I'll let the real ports
developpers decide.
I understand perfectly, but then cairo.pc is still broken, because
cairo also links to png, X11, z, glitz, etc. Humm, wait what if
we Change "Requires.private" to "Requires". Yes, that seems
to do it! Could it be _the_ fix?
Eric.