sqlcipher: fix static linking
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Tue, 16 Sep 2014 19:52:30 +0000 (16:52 -0300)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 16 Sep 2014 21:07:21 +0000 (23:07 +0200)
It uses openssl which for buildroot mandates libz, but doesn't link
against it so it fails. Fixes:
http://autobuild.buildroot.net/results/514/5145617f7c3cece933c845da3c9836d80d062bb6/

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/sqlcipher/sqlcipher.mk

index bae59bb63fa7849335302c01c8036f3e375e9a51..7c936207162faf236a7676984d26980cacc9caa8 100644 (file)
@@ -19,7 +19,7 @@ SQLCIPHER_CONF_OPT = \
        --localstatedir=/var
 
 SQLCIPHER_CFLAGS += -DSQLITE_HAS_CODEC # Required according to the README
-SQLCIPHER_LDFLAGS += -lcrypto
+SQLCIPHER_LDFLAGS += -lcrypto -lz
 
 ifneq ($(BR2_LARGEFILE),y)
 # the sqlite configure script fails to define SQLITE_DISABLE_LFS when