Re: trouble with pango build - incorrect -I flags



Skip Montanaro <skip pobox com> writes:

> I got the 0.7 version of pkg-config, cvs up'd in glib, atk and pango.  Glib
> and atk built and installed okay, but after a successful autogen.sh in the
> pango directory "make CFLAGS=-g" says:
                   ^^^^^^^^^^^^^^
>    ../../pango/pango-utils.h:23:18: glib.h: No such file or directory

This is your problem. 'CFLAGS="-g" ./autogen.sh' would be better, 
if you actually want to disable optimization... "-g" is in
the default cflags, so the effect of this is to remove -O2.

Setting CFLAGS while compiling will have undetermined effects,
and it happens to include the glib include flags. It's not
completely intentional to have things set up this way - it
could probably be improved. But I don't necessarily expect
setting CFLAGS at 'make' time to work.

Regards,
                                        Owen




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