On 27/02/2023 14:49, Iain Sandoe wrote:
Hi Shengyu,
By the way, is it expected that I need to configure with
`--with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk`?
Yes.
- for some time now macOS no longer installs headers in /usr/include (and on
newer versions most of the libraries are omitted from /usr/lib).
The libs are now squirreled away in the DSC (dylib shared cache). For
our protection.
If you want to script the detection of sysroot you can use
xcrun --sdk macosx --show-sdk-path
(but that doesn't work with old versions of XCode).
A+
Pau