Re: [AD] allegro-config patch: sed expression seds too much

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2002-08-14, Laurence <lwithers@xxxxxxxxxx> wrote:
>             Vincent, can you (or someone) change the script so that it 
> doesn't emit -I<allegro_prefix> if allegro_prefix is already in the 
> path? The preprocessor which ships with gcc3 complains:
> 
> sh-2.05$ touch test.c
> sh-2.05$ gcc `allegro-config --cflags` -o test.o -c test.c
> cc1: warning: changing search order for system directory 
> "/usr/local/include"
> cc1: warning:   as it has already been specified as a non-system 
> directory
> sh-2.05$

Maybe use this instead of -I?

`-isystem DIR'
     Add a directory to the beginning of the second include path,
     marking it as a system directory, so that it gets the same special
     treatment as is applied to the standard system directories.

I haven't tried it, since I don't use gcc3.
I just saw it in: info gcc inv pre .

-- 
王浩禎



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/