[Gloucs] changing CFLAGS settings permanently to correct header location

Francis Barton fbarton at pygoscelis.org.uk
Tue Nov 16 12:04:07 GMT 2004


I just posted this question to the Gentoo forums, but I thought it
wouldn't hurt to post it out to the LUG as well ;-) !

Hope someone can give me hint. Thanks.
Francis.

Question follows:

"OK here's my situation - this should be a pretty easy one to fix I
hope!

I used to have libart_lgpl installed in /usr/local (this was done "by
hand", not emerged, many months ago when i wanted an advance look at
gimp-pre-2.0 stuff).

Now I have removed the libart libs and headers from /usr/local/... and
emerged successfully the latest libart (into /usr as standard of
course).

So I'm trying to emerge -u world today, and libgnomecanvas barfs pretty
early on in the make stage... it can't find the libart headers.

They are definitely there in /usr/include/libart-2.0/...

So I look in the Makefile and it has this set:
CANVAS_GLADE_CFLAGS = -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API
-I/usr/local/include/libart-2.0 -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0
-I/usr/include/pango-1.0 -I/usr/include/freetype2
-I/usr/include/freetype2/config -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/libglade-2.0
-I/usr/include/libxml2

OK so it's looking for libart under /usr/local still.

I can edit the Makefile, and presumably it will compile ok.
But really what I want to do is change something permanently so compiles
will find the headers again in future.

This is what I would like to know:
Where can I change the settings so that the libart *.h files will be
found in their correct location in future?

I know how to change things for libraries - in /etc/ld.so.conf - or by
using the likes of libart2-config - but I don't know how to change
settings for includes.

Can somebody give me a hint please?
Thank you"

-- 
I use Gentoo Linux atm http://www.gentoo.org/
Linux User #239479 at http://counter.li.org/
random stuff at http://www.gloucs.lug.org.uk/members/francis/index.html
Use Jabber IM http://www.jabbercentral.com/ I'm francis at jabber.org.uk
http://www.msu.edu/user/corcora5/velo/urbanbicyclism.html
   _ _ __.. .__o    ---- the original bicyclism manifesto
 - -_--.-  _`\<,_   
  (  ( (( (_)/ (_)





More information about the gloucs mailing list