Pawel S. Veselov wrote: > Han Boetes wrote: > > Mikulas Patocka wrote: > > > It is possible to add -I/usr/local/include -L/usr/local/lib > > > to compiler flags, I even distributed links with that for > > > some time, and it turned out that on other unix systems > > > -L/usr/local/lib reversed search (first /usr/local/lib and > > > then /usr/lib, while it used to be /usr/lib first) and > > > caused linking failures. > > > > export CPPFLAGS='-I/usr/local/include' LIBS='-L/usr/local/lib' > > try if '-isystem/usr/local/include' works first, -I is bad
-isystem dir Search dir for header files, after all directories specified by -I but before the standard system direc- tories. Mark it as a system directory, so that it gets the same special treatment as is applied to the standard system directories. Fascinating... # Han