This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

makedepend default search paths and gcc-3.1.1-1


Hi,

I'm give the new gcc that was announced on the cygwin mailing list a try. 
One of the X projects I'm working on requires the makedepend program be
run.  The problem is that makedepend's default search path is looking in
the wrong directories.  Specifically it is try to look in the wrong
gcc-lib dir.  Unfortunately, there is no option to append include paths,
only to prepend include paths.  The problem with this is that   I have
been trying to figure out how makedepend generates its default include
path list, but so far I haven't been successful.  I suspect it derives it
from the -I lines used to build it, but I can't be for sure

Here's where it is looking:
<Environmental Defined Includes>
<Makefile Defined Includes>
/usr/local/lib/gcc-include
/usr/include
/usr/include/w32api
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/include

Here's where it should be looking:
<Environmental Defined Includes>
<Makefile Defined Includes>
/usr/local/lib/gcc-include
/usr/include
/usr/include/w32api
/usr/lib/gcc-lib/i686-pc-cygwin/{Default Compiler Version or Version
Specified Explicitly via Environmentals}/include

This brings up a whole new set of problems, since both gcc-2 and gcc-3.1.1
will soon have to co-exist on the same system.  As you can see this is a
tricky situation and unfortunately I have no solution at the moment.  As a
kludge, I am passing the proper search path order by using an
environmental (DEPENDFLAGS).  However, this kludge is neither elegant, nor
is it very practical.  There is something that is certain, like it or not,
this will become an issue shortly.  This behavior can be expected in any X
project which uses Imakefiles and asks the user to "make World".

Cheers,
Nicholas

__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]