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

--- Comment #2 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Iain Sandoe from comment #1)
> I don't have 10.15 or xcode 11 yet ..
> 
> does ...
> configure  --prefix ... 
> --with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
> .....
> CC="clang --sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk"
> CXX="clang++ --sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk"
> 
> work?
> (without the symlink hacks)

assuming it does, then i suppose we can put a configure step that looks for
/usr/include and then
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include ... and
automatically makes the first one found the sysroot.  If it doesn't find either
(would be the case on most of my systems, it can complain that you need to use
--with-sysroot= pointing to a valid SDK .. or install the command line tools).

Reply via email to