[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Patch for MultiarchCross



* Simon McVittie <smcv@debian.org> [110408 22:23]:
> On Fri, 08 Apr 2011 at 21:51:03 +0200, Bill Allombert wrote:
> > Requiring the user to pass -I to the compiler should be discouraged.
>
> I disagree: independently of multiarch, many libraries do this deliberately
> to allow for parallel-installation, and use pkg-config to give out appropriate
> CFLAGS.

-I is not CFLAGS but CPPFLAGS.

> For instance, you can have libgtk2.0-dev and libgtk-3-dev installed
> at the same time, even though they both include (for instance)
> <gtk/gtkwindow.h>; using -I/usr/include/gtk-2.0 or -I/usr/include/gtk-3.0
> (or in practice, asking pkg-config for gtk+-2.0.pc or gtk+-3.0.pc) selects
> the desired API.

That's simply gtk prefering windows style development. If they made it
proper part of the headers to #include there would be no problem and it
would even work with different plugins of some program using different
versions.

Gtk simply is not a good example for any sane library handling, as it
insists of inventing it's own way for everything. (Just think of the
inlining of other libraries' functions so one never can know that
libraries are actually used).

	Bernhard R. Link


Reply to: