feature: fixed compatibility with macOS 11.15+.

bumped version to 1.17.8.1 RC1.

win32/win64: upgraded pcre to 8.44 and openssl to 1.1.1d.
This commit is contained in:
Yichun Zhang (agentzh)
2020-03-19 14:15:16 -07:00
parent 721d7dacc4
commit 2ac0ad9f03
4 changed files with 60 additions and 47 deletions

17
util/configure vendored
View File

@ -775,6 +775,12 @@ int main(void) {
}
}
if ($platform eq 'macosx') {
# to work around a bug in the Xcode toolchain in macOS 11.15:
# https://github.com/openresty/homebrew-brew/issues/10
$luajit_xcflags .= " -fno-stack-check";
}
if ($opts->{debug}) {
$luajit_xcflags .= " -DLUA_USE_APICHECK -DLUA_USE_ASSERT";
@ -819,13 +825,18 @@ int main(void) {
if ($platform eq 'macosx') {
my $v = $ENV{MACOSX_DEPLOYMENT_TARGET};
if (!defined $v || $v !~ /^\d+\.\d+$/) {
if (!defined($v) || $v !~ /^\d+\.\d+$/) {
$v = `sw_vers -productVersion`;
if (defined $v && $v =~ /^\s*(\d+\.\d+)/) {
$ENV{MACOSX_DEPLOYMENT_TARGET} = $1;
chomp $v;
if (defined($v) && $v =~ /^\s*(\d+\.\d+)/) {
$v = $1;
$ENV{MACOSX_DEPLOYMENT_TARGET} = $v;
#warn "MACOSX_DEPLOYMENT_TARGET = $1";
}
}
if ($v) {
$extra_opts .= " MACOSX_DEPLOYMENT_TARGET='$v'";
}
}
if (defined $cores) {