Need help compiling PostgreSQL with OpenSSL support

I've tried to compile libpq (PostgreSQL client library) and pgsql-cli (Command Line Interface for PostgreSQL databases) with OpenSSL support.
I've changed Makefile(feeds/packeges/libs/postgresql/Makefile) :

HOST_CONFIGURE_ARGS += \ ... --with-openssl="yes" \ ...
CONFIGURE_ARGS += \ ... --with-openssl="yes" \ ...

but got error:

checking for CRYPTO_new_ex_data in -lcrypto... no
configure: error: library 'crypto' is required for OpenSSL

Maybe someone can help me to build a PostgreSQL package with OpenSSL support?

You don't need to change HOST_CONFIGURE_ARGS I suppose.

diff --git a/libs/postgresql/Makefile b/libs/postgresql/Makefile
index f3b677073..5203ee434 100644
--- a/libs/postgresql/Makefile
+++ b/libs/postgresql/Makefile
@@ -31,7 +31,7 @@ include $(INCLUDE_DIR)/package.mk
 define Package/libpq
   SECTION:=libs
   CATEGORY:=Libraries
-  DEPENDS:=+libpthread
+  DEPENDS:=+libopenssl +libpthread
   TITLE:=PostgreSQL client library
   URL:=http://www.postgresql.org/
   SUBMENU:=Database
@@ -146,7 +146,7 @@ CONFIGURE_ARGS += \
                        --without-bonjour \
                        --without-gssapi \
                        --without-ldap \
-                       --without-openssl \
+                       --with-openssl \
                        --without-pam \
                        --without-perl \
                        --without-python \

Good luck!

Thank You for help! Problem solved.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.