Permalink
Browse files

ngx-build: always use "gmake" on Solaris.

  • Loading branch information...
1 parent 590af2b commit f3e70a519a612778f122547b2abbdc16f4994cc3 @agentzh agentzh committed Jan 4, 2013
Showing with 7 additions and 2 deletions.
  1. +7 −2 ngx-build
View
@@ -170,8 +170,13 @@ if (-f "$target/logs/nginx.pid") {
warn "failed to quit existing nginx.\n";
}
-shell("make -j$jobs");
-shell("make install");
+my $make = 'make';
+if ($^O eq 'solaris') {
+ $make = 'gmake';
+}
+
+shell("$make -j$jobs");
+shell("$make install");
sub configure_nginx {
system("./configure", "--prefix=$target",

0 comments on commit f3e70a5

Please sign in to comment.