When openwrt toolchain uses eglibc (2.15) instead of uclibc,
samba36-server build causes following error:

Package samba36-server is missing dependencies for the following
libraries:
librt.so.1

Fix is to define
DEPENDS:=+USE_EGLIBC:librt
which adds the librt dependency only if the eglibc is used by toolchain.
Patch tested by building the samba36 both with the the eglibc and uclibc
openwrt toolchains.

Signed-off-by: Mika Laitio <[email protected]>
---
 net/samba36/Makefile |    1 +
 1 file changed, 1 insertion(+)

diff --git a/net/samba36/Makefile b/net/samba36/Makefile
index 2ebfcbe..2a6b6b6 100644
--- a/net/samba36/Makefile
+++ b/net/samba36/Makefile
@@ -28,6 +28,7 @@ define Package/samba36-server
   CATEGORY:=Network
   TITLE:=Samba 3.6 SMB/CIFS server
   URL:=http://www.samba.org/
+  DEPENDS:=+USE_EGLIBC:librt
 endef
 
 define Package/samba36-client
-- 
1.7.10
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to