Add -lz to the ld flags when the user has chosen to link in zlib *statically*.
authorRichard Levitte <levitte@openssl.org>
Fri, 16 Aug 2002 06:15:41 +0000 (06:15 +0000)
committerRichard Levitte <levitte@openssl.org>
Fri, 16 Aug 2002 06:15:41 +0000 (06:15 +0000)
Notified by Doug Kaufman <dkaufman@rahul.net>

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