summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <peter@korsgaard.com>2014-01-09 10:23:56 (GMT)
committer Peter Korsgaard <peter@korsgaard.com>2014-01-09 10:23:56 (GMT)
commit712ebe85799287c3964aeab62982013b15076f92 (patch)
treea70202666d4300f5153bc854e84e5b985373b3a7
parent7c4cd1afdf87c5bb63bfdd596458904b9747466f (diff)
downloadbuildroot-712ebe85799287c3964aeab62982013b15076f92.tar.gz
buildroot-712ebe85799287c3964aeab62982013b15076f92.tar.bz2
libfreefare: examples need to link with zlib for openssl when static linking
Fixes http://autobuild.buildroot.net/results/f09/f09d515f0e7b6d78010f1ce624336ceaef624989/ Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/libfreefare/libfreefare.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/libfreefare/libfreefare.mk b/package/libfreefare/libfreefare.mk
index 8dcd6b8..362cab2 100644
--- a/package/libfreefare/libfreefare.mk
+++ b/package/libfreefare/libfreefare.mk
@@ -8,4 +8,9 @@ LIBFREEFARE_VERSION = 0.3.4
LIBFREEFARE_SITE = http://libfreefare.googlecode.com/files
LIBFREEFARE_DEPENDENCIES = libnfc openssl
+ifeq ($(BR2_PREFER_STATIC_LIB),y)
+# openssl needs zlib even if the libfreefare example itself doesn't
+LIBFREEFARE_CONF_ENV += LIBS='-lz'
+endif
+
$(eval $(autotools-package))