mirror of
https://github.com/openresty/openresty.git
synced 2024-10-13 00:29:41 +00:00
./configure: now we automatically set the env MACOSX_DEPLOYMENT_TARGET to the current Mac OS X version unless the env is already set. thanks bsyk for the report in #3.
This commit is contained in:
parent
cdedd89613
commit
54b824d1f4
11
util/configure
vendored
11
util/configure
vendored
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user