We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bc2476 commit 0baeabeCopy full SHA for 0baeabe
ngx-build
@@ -15,6 +15,7 @@ my $no_debug = $ENV{NGX_BUILD_NO_DEBUG};
15
my $dtrace = $ENV{NGX_BUILD_DTRACE};
16
my $cc_opts = $ENV{NGX_BUILD_CC_OPTS};
17
my $ld_opts = $ENV{NGX_BUILD_LD_OPTS};
18
+my $extra_config_opts = $ENV{NGX_BUILD_EXTRA_CONFIG_OPTS};
19
20
my %opts;
21
getopts("fp:", \%opts) or usage();
@@ -60,6 +61,10 @@ if (($1 == 1 && $2 == 1 && $3 >= 4)
60
61
@opts = @ARGV;
62
}
63
64
+if (defined $extra_config_opts) {
65
+ push @opts, split /\s+/, $extra_config_opts;
66
+}
67
+
68
for (@opts) {
69
# TODO: we can process paths in other options as well
70
s/^(--add-module=)(\S+)/$1 . Cwd::realpath($2)/ge;
0 commit comments