mirror of
https://github.com/openresty/openresty.git
synced 2024-10-13 00:29:41 +00:00
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:
@ -1,13 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
PCRE=pcre-8.43
|
||||
PCRE=pcre-8.44
|
||||
ZLIB=zlib-1.2.11
|
||||
OPENSSL=openssl-1.1.0k
|
||||
OPENSSL=openssl-1.1.1d
|
||||
JOBS=12
|
||||
|
||||
# wget https://www.openssl.org/source/openssl-1.1.0k.tar.gz
|
||||
# wget https://www.openssl.org/source/openssl-1.1.1d.tar.gz
|
||||
# wget http://zlib.net/zlib-1.2.11.tar.gz
|
||||
# wget https://ftp.pcre.org/pub/pcre/pcre-8.43.tar.gz
|
||||
# wget https://ftp.pcre.org/pub/pcre/pcre-8.44.tar.gz
|
||||
|
||||
rm -rf objs || exit 1
|
||||
mkdir -p objs/lib || exit 1
|
||||
|
17
util/configure
vendored
17
util/configure
vendored
@ -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) {
|
||||
|
Reference in New Issue
Block a user