Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--features/org.eclipse.equinox.executable.feature/library/cocoa/build.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/features/org.eclipse.equinox.executable.feature/library/cocoa/build.sh b/features/org.eclipse.equinox.executable.feature/library/cocoa/build.sh
index 77e04ed6c..f59aca8ec 100644
--- a/features/org.eclipse.equinox.executable.feature/library/cocoa/build.sh
+++ b/features/org.eclipse.equinox.executable.feature/library/cocoa/build.sh
@@ -73,7 +73,12 @@ fi
ARCHS="-arch x86_64"
export PROGRAM_OUTPUT DEFAULT_OS DEFAULT_OS_ARCH DEFAULT_WS ARCHS PROGRAM_OUTPUT_DIR JAVA_HEADERS
-export MACOSX_DEPLOYMENT_TARGET=$DEPLOYMENT_TARGET SDKROOT=$SDKROOT_PATH
+export MACOSX_DEPLOYMENT_TARGET=$DEPLOYMENT_TARGET
+
+# Check if MacOSX 10.10 SDK exists at SDKROOT_PATH before exporting it.
+if [ -d $SDKROOT_PATH ]; then
+ export SDKROOT=$SDKROOT_PATH
+fi
if [ "$extraArgs" != "" ]; then
make -f $makefile $extraArgs

Back to the top