]> git.saurik.com Git - apple/xnu.git/blobdiff - libsyscall/xcodescripts/compile-syscalls.pl
xnu-7195.101.1.tar.gz
[apple/xnu.git] / libsyscall / xcodescripts / compile-syscalls.pl
index a75737992258fa548957990e70c62341db76b854..f278f1dba0cb70fb50f2c0fa96bdbeebef1ea207 100755 (executable)
@@ -62,7 +62,10 @@ chomp(my $CC = `xcrun -sdk "$ENV{'SDKROOT'}" -find cc`);
 my @CFLAGS = (
        "-x assembler-with-cpp",
        "-c",
-       "-I".$ENV{"SDKROOT"}."/System/Library/Frameworks/System.framework/PrivateHeaders",
+       "-isysroot", $ENV{'SDKROOT'} || "/",
+       "-I".$ENV{"SDKROOT"}."/".$ENV{"SDK_INSTALL_HEADERS_ROOT"}."/usr/include",
+       "-I".$ENV{"SDKROOT"}."/".$ENV{"SDK_INSTALL_HEADERS_ROOT"}."/usr/local/include",
+       "-I".$ENV{"SDKROOT"}."/".$ENV{"SDK_INSTALL_HEADERS_ROOT"}."/System/Library/Frameworks/System.framework/PrivateHeaders",
 );
 
 chomp(my $LIBTOOL = `xcrun -sdk "$ENV{'SDKROOT'}" -find libtool`);