[openssl.org #226] Compiling 0.9.7 with zlib [patch]

2002-08-16 Thread [EMAIL PROTECTED] via RT


I recently tried to compile the August 9th snapshot of openssl 0.9.7
with static zlib enabled. The build failed because Configure only adds
-lz for dynamic zlib. I think that this patch fixes the problem.
 Doug

--- openssl-0.9.7-beta3/Configure.orig  Thu Aug  1 14:06:26 2002
+++ openssl-0.9.7-beta3/Configure   Mon Aug 12 17:55:20 2002
@@ -1070,7 +1070,7 @@
{
$cflags = -DZLIB $cflags;
$cflags = -DZLIB_SHARED $cflags if $zlib == 2;
-   $lflags = $lflags -lz if $zlib == 2;
+   $lflags = $lflags -lz
}
 
 # You will find shlib_mark1 and shlib_mark2 explained in Makefile.org

__ 
Doug Kaufman
Internet: [EMAIL PROTECTED]

__
OpenSSL Project http://www.openssl.org
Development Mailing List   [EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]



Re: [openssl.org #226] Compiling 0.9.7 with zlib [patch]

2002-08-16 Thread Richard Levitte - VMS Whacker via RT


In message [EMAIL PROTECTED] on Thu, 15 Aug 
2002 18:53:11 -0700 (PDT), Doug Kaufman [EMAIL PROTECTED] said:

dkaufman I recently tried to compile the August 9th snapshot of openssl 0.9.7
dkaufman with static zlib enabled. The build failed because Configure only adds
dkaufman -lz for dynamic zlib. I think that this patch fixes the problem.
dkaufman  Doug
dkaufman 
dkaufman --- openssl-0.9.7-beta3/Configure.origThu Aug  1 14:06:26 2002
dkaufman +++ openssl-0.9.7-beta3/Configure Mon Aug 12 17:55:20 2002
dkaufman @@ -1070,7 +1070,7 @@
dkaufman   {
dkaufman   $cflags = -DZLIB $cflags;
dkaufman   $cflags = -DZLIB_SHARED $cflags if $zlib == 2;
dkaufman - $lflags = $lflags -lz if $zlib == 2;
dkaufman + $lflags = $lflags -lz
dkaufman   }
dkaufman  
dkaufman  # You will find shlib_mark1 and shlib_mark2 explained in Makefile.org

Almost correct.  -lz should only be added when $zlib == 1.

-- 
Richard Levitte   \ Spannvägen 38, II \ [EMAIL PROTECTED]
Redakteur@Stacken  \ S-168 35  BROMMA  \ T: +46-8-26 52 47
\  SWEDEN   \ or +46-708-26 53 44
Procurator Odiosus Ex Infernis-- [EMAIL PROTECTED]
Member of the OpenSSL development team: http://www.openssl.org/

Unsolicited commercial email is subject to an archival fee of $400.
See http://www.stacken.kth.se/~levitte/mail/ for more info.

__
OpenSSL Project http://www.openssl.org
Development Mailing List   [EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]



[openssl.org #226] Compiling 0.9.7 with zlib [patch]

2002-08-16 Thread Richard Levitte via RT


This ticket is resolved.

-- 
Richard Levitte
[EMAIL PROTECTED]
__
OpenSSL Project http://www.openssl.org
Development Mailing List   [EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]