mirror of
https://github.com/openresty/openresty.git
synced 2024-10-13 00:29:41 +00:00
bugfix: configure: spaces in the --with-cc option values resulted in errors.
This commit is contained in:
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";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user