Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | >>>>> "John" == John Levon <[EMAIL PROTECTED]> writes: | | John> On Sat, Feb 22, 2003 at 07:22:24PM -0800, Kayvan A. Sylvan | John> wrote: | >> > > * config/configure.in: remove the -isystem fiddling. Let's see | >> > > if Solaris people complain... | >> > > | >> > > I am complaining. Can you put it back please? | >> | >> 26 simian > gcc -v Reading specs from | >> /remote/tools/ksylvan/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.3/specs | >> gcc version 2.95.3 20010315 (release) | | John> OK, then we need a smarter test that converts only the needed -I | John> -> -isystem. In fact I would go as far as to say this is the job | John> of AC_PATH_XTRA, but I'm sure somebody disagrees with me there. | | John, how much of the problem was really pspell.m4 adding | -I/usr/include in the search patch? I am not sure that the cause for | the problems we saw is really our use of -isystem.
Adding -I/usr/include is a real problem since it subverts the compilers notion of where to find headers. Remember that Gcc has fixed-up a lot of headers and those should be used instead of the onces in /usr/include. It is strongly advised to _not_ use -I<system-include-dir> in the Gcc documentation. Gcc 3.4 will even go so far as to just ignore any -I<system-inc-dir> to avoid these problems. -- Lgb