mirror of
https://github.com/openresty/openresty.git
synced 2024-10-13 00:29:41 +00:00
Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
21f8910725 | |||
1b11b4840f | |||
668c00fdb8 | |||
3f8ad8af58 | |||
eecc5010eb | |||
2ee1f58571 | |||
4145db0b35 | |||
88c1439437 | |||
e8990b7d03 | |||
41d48ab573 |
418
t/sanity.t
418
t/sanity.t
File diff suppressed because it is too large
Load Diff
22
util/configure
vendored
22
util/configure
vendored
@ -114,6 +114,7 @@ my $dry_run;
|
||||
my @ngx_rpaths;
|
||||
my $cc;
|
||||
my $cores;
|
||||
my $luajit_xcflags = '';
|
||||
|
||||
my (@ngx_opts, @ngx_cc_opts, @ngx_ld_opts);
|
||||
|
||||
@ -202,6 +203,9 @@ for my $opt (@ARGV) {
|
||||
} elsif ($opt =~ /^--with-luajit=(.*)/) {
|
||||
$resty_opts{luajit_path} = $1;
|
||||
|
||||
} elsif ($opt =~ /^--with-luajit-xcflags=(.*)/) {
|
||||
$luajit_xcflags .= " $1";
|
||||
|
||||
} elsif ($opt =~ /^--with-libdrizzle=(.*)/) {
|
||||
$resty_opts{libdrizzle} = $1;
|
||||
|
||||
@ -511,13 +515,20 @@ _END_
|
||||
my $extra_opts = ' TARGET_STRIP=@:';
|
||||
|
||||
if ($opts->{debug}) {
|
||||
$extra_opts = q{ CCDEBUG=-g Q= XCFLAGS='-DLUA_USE_APICHECK}
|
||||
.q{ -DLUA_USE_ASSERT'};
|
||||
$luajit_xcflags .= " -DLUA_USE_APICHECK -DLUA_USE_ASSERT";
|
||||
$luajit_xcflags =~ s/^ +//;
|
||||
$extra_opts .= qq{ CCDEBUG=-g Q= XCFLAGS='$luajit_xcflags'};
|
||||
|
||||
} else {
|
||||
if ($luajit_xcflags) {
|
||||
$luajit_xcflags =~ s/^ +//;
|
||||
$extra_opts .= qq{ XCFLAGS='$luajit_xcflags'};
|
||||
}
|
||||
}
|
||||
|
||||
if ($platform =~ /bsd/i) {
|
||||
$extra_opts .= ' CFLAGS=-I..';
|
||||
}
|
||||
#if ($platform =~ /bsd/i) {
|
||||
#$extra_opts .= ' CFLAGS=-I..';
|
||||
#}
|
||||
|
||||
if ($on_solaris) {
|
||||
$extra_opts .= " INSTALL_X='$root_dir/build/install -m 0755' " .
|
||||
@ -888,6 +899,7 @@ _EOC_
|
||||
--with-lua51=PATH specify the external installation of Lua 5.1 by PATH
|
||||
--with-luajit enable and build LuaJIT 2.0
|
||||
--with-luajit=PATH use the external LuaJIT 2.0 installation specified by PATH
|
||||
--with-luajit-xcflags=FLAGS Specify extra C compiler flags for LuaJIT 2.0
|
||||
--with-libdrizzle=DIR specify the libdrizzle 1.0 (or drizzle) installation prefix
|
||||
--with-libpq=DIR specify the libpq (or postgresql) installation prefix
|
||||
--with-pg_config=PATH specify the path of the pg_config utility
|
||||
|
@ -37,7 +37,7 @@ for my $t_file (@t_files) {
|
||||
my $changed;
|
||||
while (<$in>) {
|
||||
for my $dir (@dirs) {
|
||||
(my $pat = $dir) =~ s/\d.*//;
|
||||
(my $pat = $dir) =~ s/-(\d+\..*)/-/;
|
||||
my $orig = $_;
|
||||
if (s{\.\./$pat\S+}{../$dir}g && $orig ne $_) {
|
||||
$changed++;
|
||||
|
@ -107,7 +107,7 @@ $root/util/get-tarball "http://github.com/agentzh/rds-json-nginx-module/tarball/
|
||||
tar -xzf rds-json-nginx-module-$ver.tar.gz || exit 1
|
||||
mv agentzh-rds-json-nginx-module-* rds-json-nginx-module-$ver || exit 1
|
||||
|
||||
ver=0.05rc1
|
||||
ver=0.05rc2
|
||||
$root/util/get-tarball "http://github.com/agentzh/rds-csv-nginx-module/tarball/v$ver" -O rds-csv-nginx-module-$ver.tar.gz || exit 1
|
||||
tar -xzf rds-csv-nginx-module-$ver.tar.gz || exit 1
|
||||
mv agentzh-rds-csv-nginx-module-* rds-csv-nginx-module-$ver || exit 1
|
||||
@ -126,7 +126,7 @@ mv chaoslawful-drizzle-nginx-module-* drizzle-nginx-module-$ver || exit 1
|
||||
|
||||
#################################
|
||||
|
||||
ver=0.5.0rc27
|
||||
ver=0.5.0rc28
|
||||
$root/util/get-tarball "http://github.com/chaoslawful/lua-nginx-module/tarball/v$ver" -O lua-nginx-module-$ver.tar.gz || exit 1
|
||||
tar -xzf lua-nginx-module-$ver.tar.gz || exit 1
|
||||
mv chaoslawful-lua-nginx-module-* ngx_lua-$ver || exit 1
|
||||
@ -237,17 +237,17 @@ rm lua-makefile-fix.patch || exit 1
|
||||
|
||||
#################################
|
||||
|
||||
ver=2.0.0-beta9
|
||||
ver=2.0.0-beta10
|
||||
$root/util/get-tarball "http://luajit.org/download/LuaJIT-$ver.tar.gz" -O "LuaJIT-$ver.tar.gz" || exit 1
|
||||
tar -xzf LuaJIT-$ver.tar.gz || exit 1
|
||||
|
||||
cd LuaJIT-$ver || exit 1;
|
||||
$root/util/get-tarball http://luajit.org/download/beta9_hotfix1.patch -O beta9_hotfix1.patch
|
||||
patch -p1 < beta9_hotfix1.patch || exit 1
|
||||
rm beta9_hotfix1.patch || exit 1
|
||||
#cd LuaJIT-$ver || exit 1;
|
||||
#$root/util/get-tarball http://luajit.org/download/beta9_hotfix1.patch -O beta9_hotfix1.patch
|
||||
#patch -p1 < beta9_hotfix1.patch || exit 1
|
||||
#rm beta9_hotfix1.patch || exit 1
|
||||
|
||||
cp $root/misc/unwind-generic.h ./unwind.h || exit 1
|
||||
cd ..
|
||||
#cp $root/misc/unwind-generic.h ./unwind.h || exit 1
|
||||
#cd ..
|
||||
|
||||
#################################
|
||||
|
||||
@ -302,7 +302,7 @@ mv agentzh-lua-resty-upload-* lua-resty-upload-$ver || exit 1
|
||||
|
||||
#################################
|
||||
|
||||
ver=0.05
|
||||
ver=0.06
|
||||
$root/util/get-tarball "http://github.com/agentzh/lua-resty-string/tarball/v$ver" -O "lua-resty-string-$ver.tar.gz" || exit 1
|
||||
tar -xzf lua-resty-string-$ver.tar.gz || exit 1
|
||||
mv agentzh-lua-resty-string-* lua-resty-string-$ver || exit 1
|
||||
|
Reference in New Issue
Block a user