diff options
Diffstat (limited to 'Source/WebKit2/DerivedSources.make')
-rw-r--r-- | Source/WebKit2/DerivedSources.make | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/WebKit2/DerivedSources.make b/Source/WebKit2/DerivedSources.make index f1f5c2cec..496c73031 100644 --- a/Source/WebKit2/DerivedSources.make +++ b/Source/WebKit2/DerivedSources.make @@ -124,6 +124,10 @@ else TEXT_PREPROCESSOR_FLAGS=-E -P -x c -std=c89 endif +ifneq ($(SDKROOT),) + SDK_FLAGS=-isysroot $(SDKROOT) +endif + SANDBOX_PROFILES = \ com.apple.WebProcess.sb \ com.apple.WebKit.PluginProcess.sb @@ -132,7 +136,7 @@ all: $(SANDBOX_PROFILES) %.sb : %.sb.in @echo Pre-processing $* sandbox profile... - $(CC) $(TEXT_PREPROCESSOR_FLAGS) $(FRAMEWORK_FLAGS) $(HEADER_FLAGS) -include "wtf/Platform.h" $< > $@ + $(CC) $(SDK_FLAGS) $(TEXT_PREPROCESSOR_FLAGS) $(FRAMEWORK_FLAGS) $(HEADER_FLAGS) -include "wtf/Platform.h" $< > $@ endif # MACOS |