summaryrefslogtreecommitdiff
path: root/infrastructure/BoxPlatform.pm.in
diff options
context:
space:
mode:
Diffstat (limited to 'infrastructure/BoxPlatform.pm.in')
-rw-r--r--infrastructure/BoxPlatform.pm.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/infrastructure/BoxPlatform.pm.in b/infrastructure/BoxPlatform.pm.in
index 7cd14eac..b2b2ce43 100644
--- a/infrastructure/BoxPlatform.pm.in
+++ b/infrastructure/BoxPlatform.pm.in
@@ -26,11 +26,15 @@ BEGIN
$build_os = 'CYGWIN' if $build_os =~ m/CYGWIN/;
$build_os = 'MINGW32' if $build_os =~ m/MINGW32/;
- $make_command = ($build_os eq 'Darwin') ? 'bsdmake' : ($build_os eq 'SunOS') ? 'gmake' : 'make';
+ if ($build_os eq 'Darwin') {
+ $xcode_ver = `xcodebuild -version | awk '/^Xcode/ {print \$2}'`
+ }
+
+ $make_command = ($build_os eq 'Darwin' && $xcode_ver < 4) ? 'bsdmake' : ($build_os eq 'SunOS') ? 'gmake' : 'make';
$bsd_make = ($build_os ne 'Linux' && $build_os ne 'CYGWIN' &&
$build_os ne "MINGW32" && $build_os ne "SunOS"
- && $build_os ne 'GNU/kFreeBSD');
+ && $build_os ne 'GNU/kFreeBSD' && $xcode_ver < 4);
# blank extra flags by default
$platform_compile_line_extra = '';