mirror of
https://github.com/openresty/openresty
synced 2025-02-23 08:19:34 +01:00
bugfix: configure: spaces in the --with-cc option values resulted in errors.
This commit is contained in:
parent
cee1aca97f
commit
6f31d3b261
12
util/configure
vendored
12
util/configure
vendored
@ -128,7 +128,7 @@ for my $opt (@ARGV) {
|
|||||||
|
|
||||||
if ($opt =~ /^--with-cc=(.+)/) {
|
if ($opt =~ /^--with-cc=(.+)/) {
|
||||||
$cc = $1;
|
$cc = $1;
|
||||||
push @ngx_opts, $opt;
|
push @ngx_opts, "'$opt'";
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -536,7 +536,7 @@ _END_
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (defined $cc) {
|
if (defined $cc) {
|
||||||
$extra_opts .= " CC=$cc";
|
$extra_opts .= " CC='$cc'";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (defined $cores) {
|
if (defined $cores) {
|
||||||
@ -590,7 +590,7 @@ _END_
|
|||||||
|
|
||||||
my $extra_opts = '';
|
my $extra_opts = '';
|
||||||
if (defined $cc) {
|
if (defined $cc) {
|
||||||
$extra_opts .= " CC=$cc";
|
$extra_opts .= " CC='$cc'";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (defined $cores) {
|
if (defined $cores) {
|
||||||
@ -670,7 +670,7 @@ _EOC_
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (defined $cc) {
|
if (defined $cc) {
|
||||||
$extra_opts .= " CC=$cc";
|
$extra_opts .= " CC='$cc'";
|
||||||
} else {
|
} else {
|
||||||
$extra_opts .= " CC=gcc";
|
$extra_opts .= " CC=gcc";
|
||||||
}
|
}
|
||||||
@ -717,7 +717,7 @@ _EOC_
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (defined $cc) {
|
if (defined $cc) {
|
||||||
$extra_opts .= " CC=$cc";
|
$extra_opts .= " CC='$cc'";
|
||||||
} else {
|
} else {
|
||||||
$extra_opts .= " CC=gcc";
|
$extra_opts .= " CC=gcc";
|
||||||
}
|
}
|
||||||
@ -764,7 +764,7 @@ _EOC_
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (defined $cc) {
|
if (defined $cc) {
|
||||||
$extra_opts .= " CC=$cc";
|
$extra_opts .= " CC='$cc'";
|
||||||
} else {
|
} else {
|
||||||
$extra_opts .= " CC=gcc";
|
$extra_opts .= " CC=gcc";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user