Add -lz to the ld flags when the user has chosen to link in zlib *statically*.
[openssl.git] / Configure
index b459b05b154ef9211a1036b954ff60dff4d52014..2566a3fbe4314bfcbc7dd3ad9b3af5b70a922f24 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -1091,7 +1091,7 @@ if ($zlib)
        {
        $cflags = "-DZLIB $cflags";
        $cflags = "-DZLIB_SHARED $cflags" if $zlib == 2;
        {
        $cflags = "-DZLIB $cflags";
        $cflags = "-DZLIB_SHARED $cflags" if $zlib == 2;
-       $lflags = "$lflags -lz" if $zlib == 2;
+       $lflags = "$lflags -lz" if $zlib == 1;
        }
 
 # You will find shlib_mark1 and shlib_mark2 explained in Makefile.org
        }
 
 # You will find shlib_mark1 and shlib_mark2 explained in Makefile.org