The sysroot flag is missing from cppflags which can cause some mis-detections in configure scripts. The FFmpeg configure script is an example of this, where building with toolchains_llvm on darwin results in build failures with the following in the log:
As you can see there is no sysroot specified on this command, while previous checks in this same log do show the sysroot pointing at my xcode installation. I suspect this is because the sysroot is in CFLAGS but not CPPFLAGS (which lists flags only necessary to run the pre-processor)
Ah actually this appears to be yet another interesting unusual configuration detail regarding ffmpeg, --host-cc and --host-cflags need to be set or configure may not behave correctly.
The sysroot flag is missing from cppflags which can cause some mis-detections in configure scripts. The FFmpeg configure script is an example of this, where building with
toolchains_llvm
on darwin results in build failures with the following in the log:As you can see there is no sysroot specified on this command, while previous checks in this same log do show the sysroot pointing at my xcode installation. I suspect this is because the sysroot is in
CFLAGS
but notCPPFLAGS
(which lists flags only necessary to run the pre-processor)