From 95ca848ce1370dfe5d993203b73d1f4d03c95516 Mon Sep 17 00:00:00 2001
From: wbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Date: Mon, 21 Feb 2005 17:12:19 +0000
Subject: [PATCH] handle builddependencies via Config.in, suggested by nbd

git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@280 3c298f89-4303-0410-b956-a3cf2f4a3e73
---
 package/Config.in                      | 3 +++
 package/dropbear_sshd/Config.in        | 1 +
 package/dropbear_sshd/dropbear_sshd.mk | 2 +-
 3 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/package/Config.in b/package/Config.in
index f22f83e60..aec730f2f 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -11,6 +11,9 @@ source "package/dnsmasq/Config.in"
 source "package/iptables/Config.in"
 source "package/bridge/Config.in"
 
+comment "libraries"
+source "package/zlib/Config.in"
+
 comment "Suggested Extras"
 source "package/ebtables/Config.in"
 source "package/dropbear_sshd/Config.in"
diff --git a/package/dropbear_sshd/Config.in b/package/dropbear_sshd/Config.in
index 07c521884..69522fdba 100644
--- a/package/dropbear_sshd/Config.in
+++ b/package/dropbear_sshd/Config.in
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_DROPBEAR_SSHD
 	bool "dropbear_sshd"
+	select BR2_PACKAGE_ZLIB
 	default n
 	help
 	  A small SSH 2 server designed for small memory environments.
diff --git a/package/dropbear_sshd/dropbear_sshd.mk b/package/dropbear_sshd/dropbear_sshd.mk
index 4031e218f..e5ac5dc40 100644
--- a/package/dropbear_sshd/dropbear_sshd.mk
+++ b/package/dropbear_sshd/dropbear_sshd.mk
@@ -67,7 +67,7 @@ $(TARGET_DIR)/$(DROPBEAR_SSHD_TARGET_BINARY): $(DROPBEAR_SSHD_DIR)/$(DROPBEAR_SS
 	cp $(DROPBEAR_SSHD_DIR)/S50dropbear $(TARGET_DIR)/etc/init.d/
 	chmod a+x $(TARGET_DIR)/etc/init.d/S50dropbear
 
-dropbear_sshd: uclibc zlib $(TARGET_DIR)/$(DROPBEAR_SSHD_TARGET_BINARY)
+dropbear_sshd: uclibc $(TARGET_DIR)/$(DROPBEAR_SSHD_TARGET_BINARY)
 
 dropbear_sshd-clean:
 	$(MAKE) DESTDIR=$(TARGET_DIR) $(TARGET_CONFIGURE_OPTS) \
-- 
2.20.1