From: <tim...@en...> - 2006-06-27 18:47:57
|
Ethan Merritt wrote: > On Tuesday 27 June 2006 12:59 pm, you wrote: > =20 >> It seems to me that it helps a lot when compiler flags are concerned. >> For example , 'pkg-config pango --cflags' gives : >> >> -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 >> -I/usr/lib/glib-2.0/include >> >> Or 'pkg-config pango --libs' : >> >> -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 >> =20 > > But that information is not required by ./configure, so what's > the point? > You don't need all those extra -lXXX flags; they will be pulled in > by the main shared library anyhow. > (...) > > As I already said, the configure process works fine without this. > =20 That succeeds because of a "chain reaction" : wxGTK (wxWidgets based on=20 gtk) links against gtk, and consequently against pango and cairo. But it=20 is not guaranteed that you'll be using the gtk port of wxWidgets. What=20 if in the future somebody tries to make it work with wxX11 (wxWidgets=20 based on the Xlib without gtk), wxOS/2 or wxMAC ? Then (in addition to=20 the little work needed in wxt_gui.cpp) we won't have the magic link=20 against cairo and pango, and the compilation would fail. Timoth=C3=A9e |