[PATCH] Remove -nostdinc in aicasm

Robert Millan rmh at debian.org
Sat Jul 2 16:01:47 UTC 2011


2011/7/2 Benjamin Kaduk <kaduk at mit.edu>:
> There is a functional difference between '-nostdinc -I/usr/include -I.' even
> when the standard include search path is just /usr/include -- the standard
> include paths are always searched last (unless -nostdinc is given), even if
> they are explicitly listed on the command line.  If there are conflicting
> definitions in /usr/local/foo.h and ./foo.h, this gimmick can be necessary
> to pull in the correct version.  (I've needed to do this when packaging
> software for the freebsd ports collection, though with /usr/local/include
> replacing '.'.)

In this case I'd rather be safe than sorry and use -iwithprefix or
-isystem `gcc --print-file-name=` on GCC only.

What is the recommended way to check the compiler flavour and version
from FreeBSD Makefiles?

-- 
Robert Millan


More information about the freebsd-hackers mailing list