mirror of
https://github.com/openresty/openresty.git
synced 2024-10-13 00:29:41 +00:00
bugfix: when relative paths are used in --with-zlib=DIR, --with-libatomic=DIR, --with-md5=DIR, and --with-sha1=DIR, the build system could not find DIR at all. thanks LazyZhu for reporting it in github issue #21.
This commit is contained in:
11
util/configure
vendored
11
util/configure
vendored
@ -238,15 +238,10 @@ for my $opt (@ARGV) {
|
||||
my $mod_path = File::Spec->rel2abs($1);
|
||||
push @ngx_opts, "--add-module=$mod_path";
|
||||
|
||||
} elsif ($opt =~ /^--with-openssl=(.*)/) {
|
||||
} elsif ($opt =~ /^--with-(openssl|pcre|zlib|libatomic|md5|sha1)=(.*)/) {
|
||||
|
||||
my $path = File::Spec->rel2abs($1);
|
||||
push @ngx_opts, "--with-openssl=$path";
|
||||
|
||||
} elsif ($opt =~ /^--with-pcre=(.*)/) {
|
||||
|
||||
my $path = File::Spec->rel2abs($1);
|
||||
push @ngx_opts, "--with-pcre=$path";
|
||||
my $path = File::Spec->rel2abs($2);
|
||||
push @ngx_opts, "--with-$1=$path";
|
||||
|
||||
} elsif ($opt =~ /^--\w.*/) {
|
||||
push @ngx_opts, $opt;
|
||||
|
Reference in New Issue
Block a user