Fix the handling of --with-zlib-include
[openssl.git] / Configurations / unix-Makefile.tmpl
index af708f0e00cb9eb73fa3e632b1b0716f34a4b7b2..9054f6a863d66f76d876beaf5c688ca35f5d8923 100644 (file)
@@ -860,6 +860,11 @@ EOF
       my $srcs = join(" ",  @srcs);
       my $deps = join(" ", @srcs, @{$args{deps}});
       my $incs = join("", map { " -I".$_ } @{$args{incs}});
+      unless ($disabled{zlib}) {
+          if ($withargs{zlib_include}) {
+              $incs .= " -I".$withargs{zlib_include};
+          }
+      }
       my $ecflags = { lib => '$(LIB_CFLAGS)',
                       dso => '$(DSO_CFLAGS)',
                       bin => '$(BIN_CFLAGS)' } -> {$args{intent}};