Skip to content

Commit

Permalink
./configure: now we automatically set the env MACOSX_DEPLOYMENT_TARGE…
Browse files Browse the repository at this point in the history
…T to the current Mac OS X version unless the env is already set. thanks bsyk for the report in #3.
  • Loading branch information
agentzh committed Dec 19, 2015
1 parent cdedd89 commit 54b824d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions util/configure
Expand Up @@ -622,6 +622,17 @@ _END_
$extra_opts .= " CC=cc";
}

if ($platform eq 'macosx') {
my $v = $ENV{MACOSX_DEPLOYMENT_TARGET};
if (!defined $v || $v !~ /^\d+\.\d+$/) {
$v = `sw_vers -productVersion`;
if (defined $v && $v =~ /^\s*(\d+\.\d+)/) {
$ENV{MACOSX_DEPLOYMENT_TARGET} = $1;
#warn "MACOSX_DEPLOYMENT_TARGET = $1";
}
}
}

if (defined $cores) {
shell "${make} -j$cores$extra_opts PREFIX=$luajit_prefix", $dry_run;
} else {
Expand Down

0 comments on commit 54b824d

Please sign in to comment.