https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90330

--- Comment #20 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Iain Sandoe from comment #19)
> (In reply to Matt Thompson from comment #17)
> 

> > Now, I'm not sure that gcc itself needs /usr/include, but many of the
> > libraries and more I compile with gcc seem to assume it. And I've gotten to
> > the point where I just couldn't figure out how to pass '-isysroot' down to
> > code like f2py (gcc is called by f2py but f2py only passes down Fortran
> > flags. And I just *cannot* get our CMake system to pass
> > CFLAGS='-isysroot...' to the gcc call within f2py).

Packages that assume /usr/include should "just work" with the sysrooted
compiler without any extra magic (I build LLVM and its associated things with
GCC and a sysroot all the time).  cmake can take a
CMAKE_OSX_SYSROOT=/path/to/sysroot if you need to be explicit.

otherwise, I'd expect it to honour CMAKE_CFLAGS= and CMAKE_CXXFLAGS= (but...)

Reply via email to