Thread: BUG #4659: Can't configure static postgresql with static openssl

BUG #4659: Can't configure static postgresql with static openssl

From
"Tomasz Kolaj"
Date:
The following bug has been logged online:

Bug reference:      4659
Logged by:          Tomasz Kolaj
Email address:      migo@abp.pl
PostgreSQL version: 8.3.6
Operating system:   Windows XP (SP2) on Mingw32
Description:        Can't configure static postgresql with static openssl
Details:

I want to compile static aplication for Windows (with out any dependencies)


I compiles openssl with options:
./config no-shared zlib mingw

that builds two libs: libcrypto.a and libssl.a
(I checked docs, libeay32 will generated at shared version of openssl)

Next I run configure of postgresql:
./configure --with-openssl --disable-shares
--with-includes=/local/ssl/inclide/ --with-libraties=/local/ssl/lib

but configure shows:
checking for CRYPTO_new_ex_data in -leay32... no
configure: error: library 'eay32' is required for OpenSSL

so how can i build static postgres with static openssl?